// Lean compiler output
// Module: Lean.Elab.MacroRules
// Imports: public import Lean.Elab.Syntax public import Lean.Elab.AuxDef
#include <lean/lean.h>
#if defined(__clang__)
#pragma clang diagnostic ignored "-Wunused-parameter"
#pragma clang diagnostic ignored "-Wunused-label"
#elif defined(__GNUC__) && !defined(__CLANG__)
#pragma GCC diagnostic ignored "-Wunused-parameter"
#pragma GCC diagnostic ignored "-Wunused-label"
#pragma GCC diagnostic ignored "-Wunused-but-set-variable"
#endif
#ifdef __cplusplus
extern "C" {
#endif
LEAN_EXPORT lean_object* l_Lean_throwErrorAt___at___00Lean_Elab_Command_elabMacroRulesAux_spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Elab_Command_elabMacroRulesAux___closed__8;
static lean_object* l_Lean_Elab_Command_elabMacroRules___regBuiltin_Lean_Elab_Command_elabMacroRules_declRange__3___closed__1;
static lean_object* l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabMacroRulesAux_spec__9___redArg___closed__8;
static lean_object* l_Lean_Elab_Command_elabMacroRules___regBuiltin_Lean_Elab_Command_elabMacroRules_declRange__3___closed__0;
static lean_object* l_Lean_Elab_Command_elabMacroRulesAux___closed__21;
static lean_object* l_Lean_Elab_Command_elabMacroRulesAux___closed__9;
static lean_object* l_Lean_Elab_Command_elabMacroRulesAux___closed__28;
LEAN_EXPORT lean_object* l_Lean_Elab_Command_elabMacroRules___lam__5(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Elab_Command_elabMacroRules___lam__1___closed__0;
lean_object* lean_mk_empty_array_with_capacity(lean_object*);
LEAN_EXPORT lean_object* l_Lean_getMainModule___at___00Lean_Elab_Command_elabMacroRulesAux_spec__8___redArg(lean_object*);
static lean_object* l_Lean_Elab_Command_elabMacroRules___lam__1___closed__10;
static lean_object* l_Lean_Elab_Command_elabMacroRules___lam__5___closed__1;
lean_object* l_Lean_TSyntax_getId(lean_object*);
LEAN_EXPORT lean_object* l_Lean_Elab_Command_elabMacroRules___lam__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Elab_Command_elabMacroRulesAux___closed__5;
static lean_object* l_Lean_Elab_addMacroStack___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00Lean_Elab_Command_elabMacroRulesAux_spec__1_spec__1_spec__2___redArg___closed__1;
LEAN_EXPORT lean_object* l_Lean_Elab_Command_elabMacroRules___regBuiltin_Lean_Elab_Command_elabMacroRules_declRange__3___boxed(lean_object*);
LEAN_EXPORT lean_object* l_Lean_withExporting___at___00Lean_Elab_Command_elabMacroRules_spec__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l_Lean_Syntax_getQuotContent(lean_object*);
LEAN_EXPORT lean_object* l_List_foldl___at___00Lean_Elab_addMacroStack___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00Lean_Elab_Command_elabMacroRulesAux_spec__1_spec__1_spec__2_spec__3(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Elab_throwUnsupportedSyntax___at___00Lean_Elab_Command_elabMacroRulesAux_spec__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l_Lean_Environment_header(lean_object*);
static lean_object* l_Lean_Elab_Command_elabMacroRulesAux___closed__14;
lean_object* l_Lean_indentD(lean_object*);
static lean_object* l_Lean_Elab_Command_elabMacroRulesAux___closed__24;
static lean_object* l_Lean_Elab_Command_elabMacroRulesAux___closed__7;
lean_object* l_Lean_Parser_Command_visibility_ofAttrKind(lean_object*);
static lean_object* l_Lean_Elab_addMacroStack___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00Lean_Elab_Command_elabMacroRulesAux_spec__1_spec__1_spec__2___redArg___closed__2;
LEAN_EXPORT lean_object* l_Lean_throwErrorAt___at___00Lean_Elab_Command_elabMacroRulesAux_spec__1___redArg(lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Option_get___at___00Lean_Elab_addMacroStack___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00Lean_Elab_Command_elabMacroRulesAux_spec__1_spec__1_spec__2_spec__2___boxed(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_throwError___at___00Lean_throwErrorAt___at___00Lean_Elab_Command_elabMacroRulesAux_spec__1_spec__1___redArg(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_withExporting___at___00Lean_Elab_Command_elabMacroRules_spec__0(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*);
lean_object* lean_array_push(lean_object*, lean_object*);
static lean_object* l_Lean_Elab_Command_elabMacroRules___lam__1___closed__18;
LEAN_EXPORT lean_object* l_Lean_withExporting___at___00Lean_Elab_Command_elabMacroRules_spec__0___redArg___lam__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabMacroRulesAux_spec__9___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_throwError___at___00Lean_throwErrorAt___at___00Lean_Elab_Command_elabMacroRulesAux_spec__1_spec__1___redArg___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Elab_Command_elabMacroRules___lam__1___closed__7;
lean_object* l_Lean_KVMap_find(lean_object*, lean_object*);
lean_object* l_Lean_Syntax_getArgs(lean_object*);
lean_object* l_Lean_replaceRef(lean_object*, lean_object*);
static lean_object* l_Lean_Elab_Command_elabMacroRules___lam__1___closed__12;
static lean_object* l_Lean_Elab_Command_elabMacroRules___lam__1___closed__4;
static lean_object* l_Lean_Elab_Command_elabMacroRulesAux___closed__17;
static lean_object* l_Lean_Elab_Command_elabMacroRules___lam__1___closed__2;
static lean_object* l_Lean_Elab_Command_elabMacroRulesAux___closed__10;
static lean_object* l_Lean_Elab_Command_elabMacroRules___regBuiltin_Lean_Elab_Command_elabMacroRules__1___closed__1;
static lean_object* l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabMacroRulesAux_spec__9___redArg___closed__9;
LEAN_EXPORT lean_object* l_Lean_Elab_Command_elabMacroRulesAux___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Elab_Command_elabMacroRules___lam__1___closed__14;
static lean_object* l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabMacroRulesAux_spec__9___redArg___closed__0;
lean_object* l_Lean_addBuiltinDeclarationRanges(lean_object*, lean_object*);
static lean_object* l_Lean_Elab_Command_elabMacroRules___regBuiltin_Lean_Elab_Command_elabMacroRules__1___closed__0;
lean_object* l_Lean_mkIdentFrom(lean_object*, lean_object*, uint8_t);
static lean_object* l_Lean_Elab_Command_elabMacroRules___lam__1___closed__9;
LEAN_EXPORT lean_object* l_Lean_throwError___at___00Lean_throwErrorAt___at___00Lean_Elab_Command_elabMacroRulesAux_spec__1_spec__1(lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Elab_Command_elabMacroRulesAux___closed__32;
uint8_t l_Lean_Syntax_isOfKind(lean_object*, lean_object*);
lean_object* l_Array_mkArray5___redArg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l_Lean_stringToMessageData(lean_object*);
static lean_object* l_Lean_Elab_Command_elabMacroRules___lam__1___closed__11;
static lean_object* l_Lean_Elab_Command_elabMacroRules___regBuiltin_Lean_Elab_Command_elabMacroRules_declRange__3___closed__2;
LEAN_EXPORT lean_object* l_Lean_withExporting___at___00Lean_Elab_Command_elabMacroRules_spec__0___redArg(lean_object*, uint8_t, lean_object*, lean_object*);
static lean_object* l_Lean_Elab_Command_elabMacroRulesAux___closed__4;
static lean_object* l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabMacroRulesAux_spec__9___redArg___closed__18;
lean_object* l_Array_mkArray0(lean_object*);
static lean_object* l_Lean_addMessageContextPartial___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00Lean_Elab_Command_elabMacroRulesAux_spec__1_spec__1_spec__1___redArg___closed__0;
static lean_object* l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabMacroRulesAux_spec__9___redArg___closed__11;
LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Lean_Elab_Command_elabMacroRulesAux_spec__7___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_withExporting___at___00Lean_Elab_Command_elabMacroRules_spec__0___redArg___lam__0(lean_object*, uint8_t, lean_object*);
static lean_object* l_List_foldl___at___00Lean_Elab_addMacroStack___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00Lean_Elab_Command_elabMacroRulesAux_spec__1_spec__1_spec__2_spec__3___closed__1;
static lean_object* l_Lean_Elab_Command_elabMacroRulesAux___closed__19;
LEAN_EXPORT lean_object* l_Lean_Elab_Command_elabMacroRulesAux(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_withExporting___at___00Lean_Elab_Command_elabMacroRules_spec__0___redArg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_getMainModule___at___00Lean_Elab_Command_elabMacroRulesAux_spec__8(lean_object*, lean_object*);
static lean_object* l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabMacroRulesAux_spec__9___redArg___closed__6;
static lean_object* l_Lean_Elab_Command_elabMacroRulesAux___closed__15;
LEAN_EXPORT lean_object* l_Lean_addMessageContextPartial___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00Lean_Elab_Command_elabMacroRulesAux_spec__1_spec__1_spec__1___redArg(lean_object*, lean_object*);
lean_object* l_Array_mkArray1___redArg(lean_object*);
LEAN_EXPORT lean_object* l_Lean_Elab_throwUnsupportedSyntax___at___00Lean_Elab_Command_elabMacroRulesAux_spec__0(lean_object*, lean_object*, lean_object*);
extern lean_object* l_Lean_Elab_Command_instInhabitedScope_default;
LEAN_EXPORT lean_object* l_Lean_getMainModule___at___00Lean_Elab_Command_elabMacroRulesAux_spec__8___redArg___boxed(lean_object*, lean_object*);
lean_object* lean_st_ref_take(lean_object*);
static lean_object* l_Lean_Elab_Command_elabMacroRulesAux___closed__36;
extern lean_object* l_Lean_Elab_Command_commandElabAttribute;
static lean_object* l_Lean_Elab_Command_elabMacroRules___lam__1___closed__15;
LEAN_EXPORT lean_object* l_Lean_Elab_Command_elabMacroRules___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Elab_Command_elabMacroRules___lam__1___closed__17;
lean_object* l_Lean_SourceInfo_fromRef(lean_object*, uint8_t);
static lean_object* l_Lean_Elab_Command_elabMacroRulesAux___closed__38;
static lean_object* l_Lean_Elab_Command_elabMacroRulesAux___closed__31;
lean_object* l_Lean_MessageData_ofSyntax(lean_object*);
lean_object* l_Lean_Syntax_node6(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l_Array_empty(lean_object*);
static lean_object* l_Lean_Elab_Command_elabMacroRulesAux___closed__2;
LEAN_EXPORT lean_object* l_Lean_throwError___at___00Lean_throwErrorAt___at___00Lean_Elab_Command_elabMacroRulesAux_spec__1_spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Elab_Command_elabMacroRules___lam__1___closed__16;
static lean_object* l_Lean_Elab_Command_elabMacroRules___regBuiltin_Lean_Elab_Command_elabMacroRules_declRange__3___closed__5;
static lean_object* l_Lean_Elab_Command_elabMacroRules___lam__1___closed__3;
static lean_object* l_Lean_Elab_Command_elabMacroRulesAux___closed__35;
lean_object* l_Lean_Elab_Command_expandNoKindMacroRulesAux(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Elab_Command_elabMacroRulesAux___closed__30;
static lean_object* l_Lean_Elab_throwUnsupportedSyntax___at___00Lean_Elab_Command_elabMacroRulesAux_spec__0___redArg___closed__1;
lean_object* l_Lean_Syntax_getKind(lean_object*);
lean_object* l_Lean_Syntax_TSepArray_getElems___redArg(lean_object*);
lean_object* l_Lean_MessageData_ofFormat(lean_object*);
lean_object* l_Lean_Elab_getBetterRef(lean_object*, lean_object*);
static lean_object* l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabMacroRulesAux_spec__9___redArg___closed__14;
LEAN_EXPORT lean_object* l_Lean_getMainModule___at___00Lean_Elab_Command_elabMacroRulesAux_spec__8___boxed(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_addMessageContextPartial___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00Lean_Elab_Command_elabMacroRulesAux_spec__1_spec__1_spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabMacroRulesAux_spec__9___redArg___closed__10;
lean_object* lean_st_ref_get(lean_object*);
LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Lean_Elab_Command_elabMacroRulesAux_spec__7(lean_object*, lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*);
static lean_object* l_Lean_Elab_Command_elabMacroRulesAux___closed__18;
lean_object* l_Lean_Syntax_node3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_addMessageContextPartial___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00Lean_Elab_Command_elabMacroRulesAux_spec__1_spec__1_spec__1___redArg___closed__3;
static lean_object* l_Lean_Elab_Command_elabMacroRulesAux___closed__25;
lean_object* l_Lean_KeyedDeclsAttribute_addBuiltin___redArg(lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Elab_throwUnsupportedSyntax___at___00Lean_Elab_Command_elabMacroRulesAux_spec__0___redArg___boxed(lean_object*);
static lean_object* l_Lean_Elab_Command_elabMacroRulesAux___closed__22;
LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabMacroRulesAux_spec__9___redArg(lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*);
lean_object* l_Lean_addMacroScope(lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Elab_Command_elabMacroRulesAux___closed__23;
uint8_t lean_name_eq(lean_object*, lean_object*);
static lean_object* l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabMacroRulesAux_spec__9___redArg___closed__1;
extern lean_object* l_Lean_Elab_pp_macroStack;
lean_object* l_Lean_Syntax_node2(lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l_Lean_Syntax_getArg(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Elab_addMacroStack___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00Lean_Elab_Command_elabMacroRulesAux_spec__1_spec__1_spec__2___redArg(lean_object*, lean_object*, lean_object*);
uint8_t l_Lean_Syntax_matchesNull(lean_object*, lean_object*);
lean_object* l_Lean_Elab_Command_resolveSyntaxKind(lean_object*, lean_object*, lean_object*);
static lean_object* l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabMacroRulesAux_spec__9___redArg___closed__4;
lean_object* lean_mk_syntax_ident(lean_object*);
static lean_object* l_Lean_Elab_Command_elabMacroRules___lam__5___closed__0;
static lean_object* l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabMacroRulesAux_spec__9___redArg___closed__5;
lean_object* l_String_toRawSubstring_x27(lean_object*);
static lean_object* l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabMacroRulesAux_spec__9___redArg___closed__3;
static lean_object* l_Lean_Elab_Command_elabMacroRulesAux___closed__26;
static lean_object* l_Lean_Elab_throwUnsupportedSyntax___at___00Lean_Elab_Command_elabMacroRulesAux_spec__0___redArg___closed__0;
lean_object* l_Lean_Elab_Command_getRef___redArg(lean_object*);
static lean_object* l_Lean_Elab_Command_elabMacroRulesAux___closed__16;
lean_object* l_Lean_Syntax_node4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Elab_Command_elabMacroRules(lean_object*, lean_object*, lean_object*);
lean_object* l_List_head_x21___redArg(lean_object*, lean_object*);
lean_object* l_Lean_Syntax_setArg(lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Elab_addMacroStack___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00Lean_Elab_Command_elabMacroRulesAux_spec__1_spec__1_spec__2___redArg___closed__3;
static lean_object* l_Lean_Elab_Command_elabMacroRulesAux___closed__33;
static lean_object* l_Lean_Elab_Command_elabMacroRulesAux___closed__34;
uint8_t l_Lean_Syntax_isQuot(lean_object*);
LEAN_EXPORT lean_object* l_Lean_Elab_addMacroStack___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00Lean_Elab_Command_elabMacroRulesAux_spec__1_spec__1_spec__2(lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_addMessageContextPartial___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00Lean_Elab_Command_elabMacroRulesAux_spec__1_spec__1_spec__1___redArg___closed__6;
static lean_object* l_Lean_addMessageContextPartial___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00Lean_Elab_Command_elabMacroRulesAux_spec__1_spec__1_spec__1___redArg___closed__5;
static lean_object* l_Lean_Elab_Command_elabMacroRules___regBuiltin_Lean_Elab_Command_elabMacroRules_declRange__3___closed__3;
static lean_object* l_Lean_addMessageContextPartial___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00Lean_Elab_Command_elabMacroRulesAux_spec__1_spec__1_spec__1___redArg___closed__4;
static lean_object* l_Lean_Elab_Command_elabMacroRules___lam__1___closed__1;
static lean_object* l_List_foldl___at___00Lean_Elab_addMacroStack___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00Lean_Elab_Command_elabMacroRulesAux_spec__1_spec__1_spec__2_spec__3___closed__0;
static lean_object* l_Lean_Elab_Command_elabMacroRulesAux___closed__12;
lean_object* l_Lean_Syntax_SepArray_ofElems(lean_object*, lean_object*);
static lean_object* l_Lean_Elab_Command_elabMacroRules___lam__1___closed__13;
static lean_object* l_Lean_Elab_Command_elabMacroRulesAux___closed__13;
lean_object* l_Lean_Elab_Command_adaptExpander(lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l_Lean_Name_mkStr2(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Elab_Command_elabMacroRules___lam__0(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_throwErrorAt___at___00Lean_Elab_Command_elabMacroRulesAux_spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Elab_Command_elabMacroRules___regBuiltin_Lean_Elab_Command_elabMacroRules__1();
uint8_t l_Lean_Elab_Command_checkRuleKind(lean_object*, lean_object*);
static lean_object* l_Lean_Elab_Command_elabMacroRulesAux___closed__29;
static lean_object* l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabMacroRulesAux_spec__9___redArg___closed__13;
lean_object* l_Lean_Syntax_node1(lean_object*, lean_object*, lean_object*);
lean_object* lean_array_set(lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Elab_Command_elabMacroRulesAux___closed__0;
LEAN_EXPORT uint8_t l_Lean_Option_get___at___00Lean_Elab_addMacroStack___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00Lean_Elab_Command_elabMacroRulesAux_spec__1_spec__1_spec__2_spec__2(lean_object*, lean_object*);
uint8_t l_Lean_Syntax_isNone(lean_object*);
LEAN_EXPORT lean_object* l_Lean_Elab_Command_elabMacroRules___lam__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Elab_Command_elabMacroRules___lam__5___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Elab_Command_elabMacroRulesAux___closed__40;
static lean_object* l_Lean_addMessageContextPartial___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00Lean_Elab_Command_elabMacroRulesAux_spec__1_spec__1_spec__1___redArg___closed__1;
lean_object* l_Array_append___redArg(lean_object*, lean_object*);
static lean_object* l_Lean_Elab_Command_elabMacroRules___regBuiltin_Lean_Elab_Command_elabMacroRules_declRange__3___closed__4;
LEAN_EXPORT lean_object* l_Lean_addMessageContextPartial___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00Lean_Elab_Command_elabMacroRulesAux_spec__1_spec__1_spec__1___redArg___boxed(lean_object*, lean_object*, lean_object*);
lean_object* l_Lean_PersistentHashMap_mkEmptyEntriesArray(lean_object*, lean_object*);
static lean_object* l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabMacroRulesAux_spec__9___redArg___closed__17;
LEAN_EXPORT lean_object* l_Lean_Elab_throwUnsupportedSyntax___at___00Lean_Elab_Command_elabMacroRulesAux_spec__0___redArg();
static lean_object* l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabMacroRulesAux_spec__9___redArg___closed__12;
static lean_object* l_Lean_Elab_Command_elabMacroRulesAux___closed__11;
static lean_object* l_Lean_Elab_Command_elabMacroRules___lam__5___closed__2;
LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00__private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabMacroRulesAux_spec__9_spec__9___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_throwErrorAt___at___00Lean_Elab_Command_elabMacroRulesAux_spec__1___redArg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Elab_Command_elabMacroRules___regBuiltin_Lean_Elab_Command_elabMacroRules__1___closed__2;
LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabMacroRulesAux_spec__9___redArg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
size_t lean_usize_add(size_t, size_t);
static lean_object* l_Lean_addMessageContextPartial___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00Lean_Elab_Command_elabMacroRulesAux_spec__1_spec__1_spec__1___redArg___closed__2;
static lean_object* l_Lean_Elab_Command_elabMacroRulesAux___closed__39;
static lean_object* l_Lean_Elab_Command_elabMacroRulesAux___closed__6;
lean_object* lean_array_uget(lean_object*, size_t);
size_t lean_array_size(lean_object*);
static lean_object* l_Lean_Elab_Command_elabMacroRules___lam__1___closed__6;
lean_object* lean_st_ref_set(lean_object*, lean_object*);
static lean_object* l_Lean_Elab_Command_elabMacroRulesAux___closed__20;
lean_object* l_Lean_Name_mkStr1(lean_object*);
lean_object* l_Lean_Name_mkStr4(lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Elab_addMacroStack___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00Lean_Elab_Command_elabMacroRulesAux_spec__1_spec__1_spec__2___redArg___closed__5;
static lean_object* l_Lean_Elab_Command_elabMacroRulesAux___closed__27;
LEAN_EXPORT lean_object* l_Lean_Elab_Command_elabMacroRules___regBuiltin_Lean_Elab_Command_elabMacroRules_declRange__3();
LEAN_EXPORT lean_object* l_Lean_Elab_addMacroStack___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00Lean_Elab_Command_elabMacroRulesAux_spec__1_spec__1_spec__2___redArg___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabMacroRulesAux_spec__9___redArg___closed__16;
static lean_object* l_Lean_Elab_Command_elabMacroRulesAux___closed__1;
static lean_object* l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabMacroRulesAux_spec__9___redArg___closed__15;
static lean_object* l_Lean_Elab_Command_elabMacroRules___regBuiltin_Lean_Elab_Command_elabMacroRules_declRange__3___closed__6;
static lean_object* l_Lean_Elab_addMacroStack___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00Lean_Elab_Command_elabMacroRulesAux_spec__1_spec__1_spec__2___redArg___closed__0;
static lean_object* l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabMacroRulesAux_spec__9___redArg___closed__7;
static lean_object* l_Lean_Elab_Command_elabMacroRules___lam__1___closed__5;
lean_object* lean_array_get(lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Elab_Command_elabMacroRulesAux___closed__3;
lean_object* l_Lean_Elab_Command_getCurrMacroScope___redArg(lean_object*);
extern lean_object* l_Lean_Elab_unsupportedSyntaxExceptionId;
uint8_t lean_usize_dec_lt(size_t, size_t);
static lean_object* l_Lean_Elab_Command_elabMacroRules___lam__1___closed__8;
LEAN_EXPORT lean_object* l_Lean_Elab_Command_elabMacroRules___lam__1(lean_object*, lean_object*, lean_object*);
lean_object* l_Lean_Environment_setExporting(lean_object*, uint8_t);
LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00__private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabMacroRulesAux_spec__9_spec__9(lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*);
static lean_object* l_List_foldl___at___00Lean_Elab_addMacroStack___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00Lean_Elab_Command_elabMacroRulesAux_spec__1_spec__1_spec__2_spec__3___closed__2;
LEAN_EXPORT lean_object* l_Lean_addMessageContextPartial___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00Lean_Elab_Command_elabMacroRulesAux_spec__1_spec__1_spec__1(lean_object*, lean_object*, lean_object*);
lean_object* lean_array_uset(lean_object*, size_t, lean_object*);
lean_object* l_Lean_MessageData_ofName(lean_object*);
static lean_object* l_Lean_Elab_Command_elabMacroRulesAux___closed__41;
LEAN_EXPORT lean_object* l_Lean_Elab_Command_elabMacroRules___regBuiltin_Lean_Elab_Command_elabMacroRules__1___boxed(lean_object*);
LEAN_EXPORT lean_object* l_Lean_Elab_addMacroStack___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00Lean_Elab_Command_elabMacroRulesAux_spec__1_spec__1_spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabMacroRulesAux_spec__9(lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*);
static lean_object* l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabMacroRulesAux_spec__9___redArg___closed__2;
static lean_object* l_Lean_Elab_addMacroStack___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00Lean_Elab_Command_elabMacroRulesAux_spec__1_spec__1_spec__2___redArg___closed__4;
static lean_object* l_Lean_Elab_Command_elabMacroRulesAux___closed__37;
static lean_object* _init_l_Lean_Elab_addMacroStack___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00Lean_Elab_Command_elabMacroRulesAux_spec__1_spec__1_spec__2___redArg___closed__0() {
_start:
{
lean_object* x_1; 
x_1 = l_Lean_Elab_Command_instInhabitedScope_default;
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_addMacroStack___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00Lean_Elab_Command_elabMacroRulesAux_spec__1_spec__1_spec__2___redArg___closed__1() {
_start:
{
lean_object* x_1; 
x_1 = l_Lean_Elab_pp_macroStack;
return x_1;
}
}
LEAN_EXPORT uint8_t l_Lean_Option_get___at___00Lean_Elab_addMacroStack___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00Lean_Elab_Command_elabMacroRulesAux_spec__1_spec__1_spec__2_spec__2(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; lean_object* x_4; lean_object* x_5; 
x_3 = lean_ctor_get(x_2, 0);
x_4 = lean_ctor_get(x_2, 1);
x_5 = l_Lean_KVMap_find(x_1, x_3);
if (lean_obj_tag(x_5) == 0)
{
uint8_t x_6; 
x_6 = lean_unbox(x_4);
return x_6;
}
else
{
lean_object* x_7; 
x_7 = lean_ctor_get(x_5, 0);
lean_inc(x_7);
lean_dec_ref(x_5);
if (lean_obj_tag(x_7) == 1)
{
uint8_t x_8; 
x_8 = lean_ctor_get_uint8(x_7, 0);
lean_dec_ref(x_7);
return x_8;
}
else
{
uint8_t x_9; 
lean_dec(x_7);
x_9 = lean_unbox(x_4);
return x_9;
}
}
}
}
static lean_object* _init_l_Lean_Elab_addMacroStack___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00Lean_Elab_Command_elabMacroRulesAux_spec__1_spec__1_spec__2___redArg___closed__2() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = lean_box(1);
x_2 = l_Lean_MessageData_ofFormat(x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_Elab_addMacroStack___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00Lean_Elab_Command_elabMacroRulesAux_spec__1_spec__1_spec__2___redArg___closed__3() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("with resulting expansion", 24, 24);
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_addMacroStack___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00Lean_Elab_Command_elabMacroRulesAux_spec__1_spec__1_spec__2___redArg___closed__4() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_Elab_addMacroStack___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00Lean_Elab_Command_elabMacroRulesAux_spec__1_spec__1_spec__2___redArg___closed__3;
x_2 = lean_alloc_ctor(3, 1, 0);
lean_ctor_set(x_2, 0, x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_Elab_addMacroStack___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00Lean_Elab_Command_elabMacroRulesAux_spec__1_spec__1_spec__2___redArg___closed__5() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_Elab_addMacroStack___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00Lean_Elab_Command_elabMacroRulesAux_spec__1_spec__1_spec__2___redArg___closed__4;
x_2 = l_Lean_MessageData_ofFormat(x_1);
return x_2;
}
}
static lean_object* _init_l_List_foldl___at___00Lean_Elab_addMacroStack___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00Lean_Elab_Command_elabMacroRulesAux_spec__1_spec__1_spec__2_spec__3___closed__0() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("while expanding", 15, 15);
return x_1;
}
}
static lean_object* _init_l_List_foldl___at___00Lean_Elab_addMacroStack___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00Lean_Elab_Command_elabMacroRulesAux_spec__1_spec__1_spec__2_spec__3___closed__1() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_List_foldl___at___00Lean_Elab_addMacroStack___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00Lean_Elab_Command_elabMacroRulesAux_spec__1_spec__1_spec__2_spec__3___closed__0;
x_2 = lean_alloc_ctor(3, 1, 0);
lean_ctor_set(x_2, 0, x_1);
return x_2;
}
}
static lean_object* _init_l_List_foldl___at___00Lean_Elab_addMacroStack___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00Lean_Elab_Command_elabMacroRulesAux_spec__1_spec__1_spec__2_spec__3___closed__2() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_List_foldl___at___00Lean_Elab_addMacroStack___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00Lean_Elab_Command_elabMacroRulesAux_spec__1_spec__1_spec__2_spec__3___closed__1;
x_2 = l_Lean_MessageData_ofFormat(x_1);
return x_2;
}
}
LEAN_EXPORT lean_object* l_List_foldl___at___00Lean_Elab_addMacroStack___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00Lean_Elab_Command_elabMacroRulesAux_spec__1_spec__1_spec__2_spec__3(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
if (lean_obj_tag(x_3) == 0)
{
lean_dec_ref(x_1);
return x_2;
}
else
{
uint8_t x_4; 
x_4 = !lean_is_exclusive(x_3);
if (x_4 == 0)
{
lean_object* x_5; uint8_t x_6; 
x_5 = lean_ctor_get(x_3, 0);
x_6 = !lean_is_exclusive(x_5);
if (x_6 == 0)
{
lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; 
x_7 = lean_ctor_get(x_3, 1);
x_8 = lean_ctor_get(x_5, 0);
x_9 = lean_ctor_get(x_5, 1);
lean_dec(x_9);
lean_inc_ref(x_1);
lean_ctor_set_tag(x_5, 7);
lean_ctor_set(x_5, 1, x_1);
lean_ctor_set(x_5, 0, x_2);
x_10 = l_List_foldl___at___00Lean_Elab_addMacroStack___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00Lean_Elab_Command_elabMacroRulesAux_spec__1_spec__1_spec__2_spec__3___closed__2;
lean_ctor_set_tag(x_3, 7);
lean_ctor_set(x_3, 1, x_10);
x_11 = l_Lean_MessageData_ofSyntax(x_8);
x_12 = l_Lean_indentD(x_11);
x_13 = lean_alloc_ctor(7, 2, 0);
lean_ctor_set(x_13, 0, x_3);
lean_ctor_set(x_13, 1, x_12);
x_2 = x_13;
x_3 = x_7;
goto _start;
}
else
{
lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; 
x_15 = lean_ctor_get(x_3, 1);
x_16 = lean_ctor_get(x_5, 0);
lean_inc(x_16);
lean_dec(x_5);
lean_inc_ref(x_1);
x_17 = lean_alloc_ctor(7, 2, 0);
lean_ctor_set(x_17, 0, x_2);
lean_ctor_set(x_17, 1, x_1);
x_18 = l_List_foldl___at___00Lean_Elab_addMacroStack___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00Lean_Elab_Command_elabMacroRulesAux_spec__1_spec__1_spec__2_spec__3___closed__2;
lean_ctor_set_tag(x_3, 7);
lean_ctor_set(x_3, 1, x_18);
lean_ctor_set(x_3, 0, x_17);
x_19 = l_Lean_MessageData_ofSyntax(x_16);
x_20 = l_Lean_indentD(x_19);
x_21 = lean_alloc_ctor(7, 2, 0);
lean_ctor_set(x_21, 0, x_3);
lean_ctor_set(x_21, 1, x_20);
x_2 = x_21;
x_3 = x_15;
goto _start;
}
}
else
{
lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; 
x_23 = lean_ctor_get(x_3, 0);
x_24 = lean_ctor_get(x_3, 1);
lean_inc(x_24);
lean_inc(x_23);
lean_dec(x_3);
x_25 = lean_ctor_get(x_23, 0);
lean_inc(x_25);
if (lean_is_exclusive(x_23)) {
 lean_ctor_release(x_23, 0);
 lean_ctor_release(x_23, 1);
 x_26 = x_23;
} else {
 lean_dec_ref(x_23);
 x_26 = lean_box(0);
}
lean_inc_ref(x_1);
if (lean_is_scalar(x_26)) {
 x_27 = lean_alloc_ctor(7, 2, 0);
} else {
 x_27 = x_26;
 lean_ctor_set_tag(x_27, 7);
}
lean_ctor_set(x_27, 0, x_2);
lean_ctor_set(x_27, 1, x_1);
x_28 = l_List_foldl___at___00Lean_Elab_addMacroStack___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00Lean_Elab_Command_elabMacroRulesAux_spec__1_spec__1_spec__2_spec__3___closed__2;
x_29 = lean_alloc_ctor(7, 2, 0);
lean_ctor_set(x_29, 0, x_27);
lean_ctor_set(x_29, 1, x_28);
x_30 = l_Lean_MessageData_ofSyntax(x_25);
x_31 = l_Lean_indentD(x_30);
x_32 = lean_alloc_ctor(7, 2, 0);
lean_ctor_set(x_32, 0, x_29);
lean_ctor_set(x_32, 1, x_31);
x_2 = x_32;
x_3 = x_24;
goto _start;
}
}
}
}
LEAN_EXPORT lean_object* l_Lean_Elab_addMacroStack___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00Lean_Elab_Command_elabMacroRulesAux_spec__1_spec__1_spec__2___redArg(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; uint8_t x_11; 
x_5 = lean_st_ref_get(x_3);
x_6 = lean_ctor_get(x_5, 2);
lean_inc(x_6);
lean_dec(x_5);
x_7 = l_Lean_Elab_addMacroStack___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00Lean_Elab_Command_elabMacroRulesAux_spec__1_spec__1_spec__2___redArg___closed__0;
x_8 = l_List_head_x21___redArg(x_7, x_6);
lean_dec(x_6);
x_9 = lean_ctor_get(x_8, 1);
lean_inc(x_9);
lean_dec(x_8);
x_10 = l_Lean_Elab_addMacroStack___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00Lean_Elab_Command_elabMacroRulesAux_spec__1_spec__1_spec__2___redArg___closed__1;
x_11 = l_Lean_Option_get___at___00Lean_Elab_addMacroStack___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00Lean_Elab_Command_elabMacroRulesAux_spec__1_spec__1_spec__2_spec__2(x_9, x_10);
lean_dec(x_9);
if (x_11 == 0)
{
lean_object* x_12; 
lean_dec(x_2);
x_12 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_12, 0, x_1);
return x_12;
}
else
{
if (lean_obj_tag(x_2) == 0)
{
lean_object* x_13; 
x_13 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_13, 0, x_1);
return x_13;
}
else
{
lean_object* x_14; uint8_t x_15; 
x_14 = lean_ctor_get(x_2, 0);
lean_inc(x_14);
x_15 = !lean_is_exclusive(x_14);
if (x_15 == 0)
{
lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; 
x_16 = lean_ctor_get(x_14, 1);
x_17 = lean_ctor_get(x_14, 0);
lean_dec(x_17);
x_18 = l_Lean_Elab_addMacroStack___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00Lean_Elab_Command_elabMacroRulesAux_spec__1_spec__1_spec__2___redArg___closed__2;
lean_ctor_set_tag(x_14, 7);
lean_ctor_set(x_14, 1, x_18);
lean_ctor_set(x_14, 0, x_1);
x_19 = l_Lean_Elab_addMacroStack___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00Lean_Elab_Command_elabMacroRulesAux_spec__1_spec__1_spec__2___redArg___closed__5;
x_20 = lean_alloc_ctor(7, 2, 0);
lean_ctor_set(x_20, 0, x_14);
lean_ctor_set(x_20, 1, x_19);
x_21 = l_Lean_MessageData_ofSyntax(x_16);
x_22 = l_Lean_indentD(x_21);
x_23 = lean_alloc_ctor(7, 2, 0);
lean_ctor_set(x_23, 0, x_20);
lean_ctor_set(x_23, 1, x_22);
x_24 = l_List_foldl___at___00Lean_Elab_addMacroStack___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00Lean_Elab_Command_elabMacroRulesAux_spec__1_spec__1_spec__2_spec__3(x_18, x_23, x_2);
x_25 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_25, 0, x_24);
return x_25;
}
else
{
lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; 
x_26 = lean_ctor_get(x_14, 1);
lean_inc(x_26);
lean_dec(x_14);
x_27 = l_Lean_Elab_addMacroStack___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00Lean_Elab_Command_elabMacroRulesAux_spec__1_spec__1_spec__2___redArg___closed__2;
x_28 = lean_alloc_ctor(7, 2, 0);
lean_ctor_set(x_28, 0, x_1);
lean_ctor_set(x_28, 1, x_27);
x_29 = l_Lean_Elab_addMacroStack___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00Lean_Elab_Command_elabMacroRulesAux_spec__1_spec__1_spec__2___redArg___closed__5;
x_30 = lean_alloc_ctor(7, 2, 0);
lean_ctor_set(x_30, 0, x_28);
lean_ctor_set(x_30, 1, x_29);
x_31 = l_Lean_MessageData_ofSyntax(x_26);
x_32 = l_Lean_indentD(x_31);
x_33 = lean_alloc_ctor(7, 2, 0);
lean_ctor_set(x_33, 0, x_30);
lean_ctor_set(x_33, 1, x_32);
x_34 = l_List_foldl___at___00Lean_Elab_addMacroStack___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00Lean_Elab_Command_elabMacroRulesAux_spec__1_spec__1_spec__2_spec__3(x_27, x_33, x_2);
x_35 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_35, 0, x_34);
return x_35;
}
}
}
}
}
LEAN_EXPORT lean_object* l_Lean_Elab_addMacroStack___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00Lean_Elab_Command_elabMacroRulesAux_spec__1_spec__1_spec__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
lean_object* x_6; 
x_6 = l_Lean_Elab_addMacroStack___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00Lean_Elab_Command_elabMacroRulesAux_spec__1_spec__1_spec__2___redArg(x_1, x_2, x_4);
return x_6;
}
}
static lean_object* _init_l_Lean_Elab_throwUnsupportedSyntax___at___00Lean_Elab_Command_elabMacroRulesAux_spec__0___redArg___closed__0() {
_start:
{
lean_object* x_1; 
x_1 = l_Lean_Elab_unsupportedSyntaxExceptionId;
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_throwUnsupportedSyntax___at___00Lean_Elab_Command_elabMacroRulesAux_spec__0___redArg___closed__1() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_box(0);
x_2 = l_Lean_Elab_throwUnsupportedSyntax___at___00Lean_Elab_Command_elabMacroRulesAux_spec__0___redArg___closed__0;
x_3 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_3, 0, x_2);
lean_ctor_set(x_3, 1, x_1);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Lean_Elab_throwUnsupportedSyntax___at___00Lean_Elab_Command_elabMacroRulesAux_spec__0___redArg() {
_start:
{
lean_object* x_2; lean_object* x_3; 
x_2 = l_Lean_Elab_throwUnsupportedSyntax___at___00Lean_Elab_Command_elabMacroRulesAux_spec__0___redArg___closed__1;
x_3 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_3, 0, x_2);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Lean_Elab_throwUnsupportedSyntax___at___00Lean_Elab_Command_elabMacroRulesAux_spec__0(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_5; 
x_5 = l_Lean_Elab_throwUnsupportedSyntax___at___00Lean_Elab_Command_elabMacroRulesAux_spec__0___redArg();
return x_5;
}
}
static lean_object* _init_l_Lean_addMessageContextPartial___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00Lean_Elab_Command_elabMacroRulesAux_spec__1_spec__1_spec__1___redArg___closed__0() {
_start:
{
lean_object* x_1; 
x_1 = l_Lean_PersistentHashMap_mkEmptyEntriesArray(lean_box(0), lean_box(0));
return x_1;
}
}
static lean_object* _init_l_Lean_addMessageContextPartial___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00Lean_Elab_Command_elabMacroRulesAux_spec__1_spec__1_spec__1___redArg___closed__1() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_addMessageContextPartial___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00Lean_Elab_Command_elabMacroRulesAux_spec__1_spec__1_spec__1___redArg___closed__0;
x_2 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_2, 0, x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_addMessageContextPartial___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00Lean_Elab_Command_elabMacroRulesAux_spec__1_spec__1_spec__1___redArg___closed__2() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Lean_addMessageContextPartial___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00Lean_Elab_Command_elabMacroRulesAux_spec__1_spec__1_spec__1___redArg___closed__1;
x_2 = lean_unsigned_to_nat(0u);
x_3 = lean_alloc_ctor(0, 9, 0);
lean_ctor_set(x_3, 0, x_2);
lean_ctor_set(x_3, 1, x_2);
lean_ctor_set(x_3, 2, x_2);
lean_ctor_set(x_3, 3, x_1);
lean_ctor_set(x_3, 4, x_1);
lean_ctor_set(x_3, 5, x_1);
lean_ctor_set(x_3, 6, x_1);
lean_ctor_set(x_3, 7, x_1);
lean_ctor_set(x_3, 8, x_1);
return x_3;
}
}
static lean_object* _init_l_Lean_addMessageContextPartial___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00Lean_Elab_Command_elabMacroRulesAux_spec__1_spec__1_spec__1___redArg___closed__3() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = lean_unsigned_to_nat(32u);
x_2 = lean_mk_empty_array_with_capacity(x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_addMessageContextPartial___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00Lean_Elab_Command_elabMacroRulesAux_spec__1_spec__1_spec__1___redArg___closed__4() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_addMessageContextPartial___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00Lean_Elab_Command_elabMacroRulesAux_spec__1_spec__1_spec__1___redArg___closed__3;
x_2 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_2, 0, x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_addMessageContextPartial___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00Lean_Elab_Command_elabMacroRulesAux_spec__1_spec__1_spec__1___redArg___closed__5() {
_start:
{
size_t x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; 
x_1 = 5;
x_2 = lean_unsigned_to_nat(0u);
x_3 = l_Lean_addMessageContextPartial___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00Lean_Elab_Command_elabMacroRulesAux_spec__1_spec__1_spec__1___redArg___closed__3;
x_4 = l_Lean_addMessageContextPartial___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00Lean_Elab_Command_elabMacroRulesAux_spec__1_spec__1_spec__1___redArg___closed__4;
x_5 = lean_alloc_ctor(0, 4, sizeof(size_t)*1);
lean_ctor_set(x_5, 0, x_4);
lean_ctor_set(x_5, 1, x_3);
lean_ctor_set(x_5, 2, x_2);
lean_ctor_set(x_5, 3, x_2);
lean_ctor_set_usize(x_5, 4, x_1);
return x_5;
}
}
static lean_object* _init_l_Lean_addMessageContextPartial___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00Lean_Elab_Command_elabMacroRulesAux_spec__1_spec__1_spec__1___redArg___closed__6() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; 
x_1 = lean_box(1);
x_2 = l_Lean_addMessageContextPartial___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00Lean_Elab_Command_elabMacroRulesAux_spec__1_spec__1_spec__1___redArg___closed__5;
x_3 = l_Lean_addMessageContextPartial___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00Lean_Elab_Command_elabMacroRulesAux_spec__1_spec__1_spec__1___redArg___closed__1;
x_4 = lean_alloc_ctor(0, 3, 0);
lean_ctor_set(x_4, 0, x_3);
lean_ctor_set(x_4, 1, x_2);
lean_ctor_set(x_4, 2, x_1);
return x_4;
}
}
LEAN_EXPORT lean_object* l_Lean_addMessageContextPartial___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00Lean_Elab_Command_elabMacroRulesAux_spec__1_spec__1_spec__1___redArg(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; 
x_4 = lean_st_ref_get(x_2);
x_5 = lean_ctor_get(x_4, 0);
lean_inc_ref(x_5);
lean_dec(x_4);
x_6 = lean_st_ref_get(x_2);
x_7 = lean_ctor_get(x_6, 2);
lean_inc(x_7);
lean_dec(x_6);
x_8 = l_Lean_Elab_addMacroStack___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00Lean_Elab_Command_elabMacroRulesAux_spec__1_spec__1_spec__2___redArg___closed__0;
x_9 = l_List_head_x21___redArg(x_8, x_7);
lean_dec(x_7);
x_10 = lean_ctor_get(x_9, 1);
lean_inc(x_10);
lean_dec(x_9);
x_11 = l_Lean_addMessageContextPartial___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00Lean_Elab_Command_elabMacroRulesAux_spec__1_spec__1_spec__1___redArg___closed__2;
x_12 = l_Lean_addMessageContextPartial___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00Lean_Elab_Command_elabMacroRulesAux_spec__1_spec__1_spec__1___redArg___closed__6;
x_13 = lean_alloc_ctor(0, 4, 0);
lean_ctor_set(x_13, 0, x_5);
lean_ctor_set(x_13, 1, x_11);
lean_ctor_set(x_13, 2, x_12);
lean_ctor_set(x_13, 3, x_10);
x_14 = lean_alloc_ctor(3, 2, 0);
lean_ctor_set(x_14, 0, x_13);
lean_ctor_set(x_14, 1, x_1);
x_15 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_15, 0, x_14);
return x_15;
}
}
LEAN_EXPORT lean_object* l_Lean_addMessageContextPartial___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00Lean_Elab_Command_elabMacroRulesAux_spec__1_spec__1_spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_5; 
x_5 = l_Lean_addMessageContextPartial___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00Lean_Elab_Command_elabMacroRulesAux_spec__1_spec__1_spec__1___redArg(x_1, x_3);
return x_5;
}
}
LEAN_EXPORT lean_object* l_Lean_getMainModule___at___00Lean_Elab_Command_elabMacroRulesAux_spec__8___redArg(lean_object* x_1) {
_start:
{
lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; 
x_3 = lean_st_ref_get(x_1);
x_4 = lean_ctor_get(x_3, 0);
lean_inc_ref(x_4);
lean_dec(x_3);
x_5 = l_Lean_Environment_header(x_4);
lean_dec_ref(x_4);
x_6 = lean_ctor_get(x_5, 0);
lean_inc(x_6);
lean_dec_ref(x_5);
x_7 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_7, 0, x_6);
return x_7;
}
}
LEAN_EXPORT lean_object* l_Lean_getMainModule___at___00Lean_Elab_Command_elabMacroRulesAux_spec__8(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_4; 
x_4 = l_Lean_getMainModule___at___00Lean_Elab_Command_elabMacroRulesAux_spec__8___redArg(x_2);
return x_4;
}
}
LEAN_EXPORT lean_object* l_Lean_throwError___at___00Lean_throwErrorAt___at___00Lean_Elab_Command_elabMacroRulesAux_spec__1_spec__1___redArg(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_5; 
x_5 = l_Lean_Elab_Command_getRef___redArg(x_2);
if (lean_obj_tag(x_5) == 0)
{
lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; uint8_t x_11; 
x_6 = lean_ctor_get(x_5, 0);
lean_inc(x_6);
lean_dec_ref(x_5);
x_7 = l_Lean_addMessageContextPartial___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00Lean_Elab_Command_elabMacroRulesAux_spec__1_spec__1_spec__1___redArg(x_1, x_3);
x_8 = lean_ctor_get(x_7, 0);
lean_inc(x_8);
lean_dec_ref(x_7);
x_9 = lean_ctor_get(x_2, 4);
lean_inc(x_9);
lean_dec_ref(x_2);
lean_inc(x_9);
x_10 = l_Lean_Elab_addMacroStack___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00Lean_Elab_Command_elabMacroRulesAux_spec__1_spec__1_spec__2___redArg(x_8, x_9, x_3);
x_11 = !lean_is_exclusive(x_10);
if (x_11 == 0)
{
lean_object* x_12; lean_object* x_13; lean_object* x_14; 
x_12 = lean_ctor_get(x_10, 0);
x_13 = l_Lean_Elab_getBetterRef(x_6, x_9);
lean_dec(x_6);
x_14 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_14, 0, x_13);
lean_ctor_set(x_14, 1, x_12);
lean_ctor_set_tag(x_10, 1);
lean_ctor_set(x_10, 0, x_14);
return x_10;
}
else
{
lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; 
x_15 = lean_ctor_get(x_10, 0);
lean_inc(x_15);
lean_dec(x_10);
x_16 = l_Lean_Elab_getBetterRef(x_6, x_9);
lean_dec(x_6);
x_17 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_17, 0, x_16);
lean_ctor_set(x_17, 1, x_15);
x_18 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_18, 0, x_17);
return x_18;
}
}
else
{
uint8_t x_19; 
lean_dec_ref(x_2);
lean_dec_ref(x_1);
x_19 = !lean_is_exclusive(x_5);
if (x_19 == 0)
{
return x_5;
}
else
{
lean_object* x_20; lean_object* x_21; 
x_20 = lean_ctor_get(x_5, 0);
lean_inc(x_20);
lean_dec(x_5);
x_21 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_21, 0, x_20);
return x_21;
}
}
}
}
LEAN_EXPORT lean_object* l_Lean_throwError___at___00Lean_throwErrorAt___at___00Lean_Elab_Command_elabMacroRulesAux_spec__1_spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
lean_object* x_6; 
x_6 = l_Lean_throwError___at___00Lean_throwErrorAt___at___00Lean_Elab_Command_elabMacroRulesAux_spec__1_spec__1___redArg(x_2, x_3, x_4);
return x_6;
}
}
LEAN_EXPORT lean_object* l_Lean_throwErrorAt___at___00Lean_Elab_Command_elabMacroRulesAux_spec__1___redArg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
lean_object* x_6; 
x_6 = l_Lean_Elab_Command_getRef___redArg(x_3);
if (lean_obj_tag(x_6) == 0)
{
lean_object* x_7; uint8_t x_8; 
x_7 = lean_ctor_get(x_6, 0);
lean_inc(x_7);
lean_dec_ref(x_6);
x_8 = !lean_is_exclusive(x_3);
if (x_8 == 0)
{
lean_object* x_9; lean_object* x_10; lean_object* x_11; 
x_9 = lean_ctor_get(x_3, 7);
lean_dec(x_9);
x_10 = l_Lean_replaceRef(x_1, x_7);
lean_dec(x_7);
lean_ctor_set(x_3, 7, x_10);
x_11 = l_Lean_throwError___at___00Lean_throwErrorAt___at___00Lean_Elab_Command_elabMacroRulesAux_spec__1_spec__1___redArg(x_2, x_3, x_4);
return x_11;
}
else
{
lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; uint8_t x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; 
x_12 = lean_ctor_get(x_3, 0);
x_13 = lean_ctor_get(x_3, 1);
x_14 = lean_ctor_get(x_3, 2);
x_15 = lean_ctor_get(x_3, 3);
x_16 = lean_ctor_get(x_3, 4);
x_17 = lean_ctor_get(x_3, 5);
x_18 = lean_ctor_get(x_3, 6);
x_19 = lean_ctor_get(x_3, 8);
x_20 = lean_ctor_get(x_3, 9);
x_21 = lean_ctor_get_uint8(x_3, sizeof(void*)*10);
lean_inc(x_20);
lean_inc(x_19);
lean_inc(x_18);
lean_inc(x_17);
lean_inc(x_16);
lean_inc(x_15);
lean_inc(x_14);
lean_inc(x_13);
lean_inc(x_12);
lean_dec(x_3);
x_22 = l_Lean_replaceRef(x_1, x_7);
lean_dec(x_7);
x_23 = lean_alloc_ctor(0, 10, 1);
lean_ctor_set(x_23, 0, x_12);
lean_ctor_set(x_23, 1, x_13);
lean_ctor_set(x_23, 2, x_14);
lean_ctor_set(x_23, 3, x_15);
lean_ctor_set(x_23, 4, x_16);
lean_ctor_set(x_23, 5, x_17);
lean_ctor_set(x_23, 6, x_18);
lean_ctor_set(x_23, 7, x_22);
lean_ctor_set(x_23, 8, x_19);
lean_ctor_set(x_23, 9, x_20);
lean_ctor_set_uint8(x_23, sizeof(void*)*10, x_21);
x_24 = l_Lean_throwError___at___00Lean_throwErrorAt___at___00Lean_Elab_Command_elabMacroRulesAux_spec__1_spec__1___redArg(x_2, x_23, x_4);
return x_24;
}
}
else
{
uint8_t x_25; 
lean_dec_ref(x_3);
lean_dec_ref(x_2);
x_25 = !lean_is_exclusive(x_6);
if (x_25 == 0)
{
return x_6;
}
else
{
lean_object* x_26; lean_object* x_27; 
x_26 = lean_ctor_get(x_6, 0);
lean_inc(x_26);
lean_dec(x_6);
x_27 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_27, 0, x_26);
return x_27;
}
}
}
}
LEAN_EXPORT lean_object* l_Lean_throwErrorAt___at___00Lean_Elab_Command_elabMacroRulesAux_spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) {
_start:
{
lean_object* x_7; 
x_7 = l_Lean_throwErrorAt___at___00Lean_Elab_Command_elabMacroRulesAux_spec__1___redArg(x_2, x_3, x_4, x_5);
return x_7;
}
}
static lean_object* _init_l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabMacroRulesAux_spec__9___redArg___closed__0() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("invalid macro_rules alternative, expected syntax node kind `", 60, 60);
return x_1;
}
}
static lean_object* _init_l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabMacroRulesAux_spec__9___redArg___closed__1() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabMacroRulesAux_spec__9___redArg___closed__0;
x_2 = l_Lean_stringToMessageData(x_1);
return x_2;
}
}
static lean_object* _init_l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabMacroRulesAux_spec__9___redArg___closed__2() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("`", 1, 1);
return x_1;
}
}
static lean_object* _init_l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabMacroRulesAux_spec__9___redArg___closed__3() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabMacroRulesAux_spec__9___redArg___closed__2;
x_2 = l_Lean_stringToMessageData(x_1);
return x_2;
}
}
static lean_object* _init_l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabMacroRulesAux_spec__9___redArg___closed__7() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("matchAlt", 8, 8);
return x_1;
}
}
static lean_object* _init_l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabMacroRulesAux_spec__9___redArg___closed__6() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("Term", 4, 4);
return x_1;
}
}
static lean_object* _init_l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabMacroRulesAux_spec__9___redArg___closed__5() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("Parser", 6, 6);
return x_1;
}
}
static lean_object* _init_l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabMacroRulesAux_spec__9___redArg___closed__4() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("Lean", 4, 4);
return x_1;
}
}
static lean_object* _init_l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabMacroRulesAux_spec__9___redArg___closed__8() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; 
x_1 = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabMacroRulesAux_spec__9___redArg___closed__7;
x_2 = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabMacroRulesAux_spec__9___redArg___closed__6;
x_3 = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabMacroRulesAux_spec__9___redArg___closed__5;
x_4 = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabMacroRulesAux_spec__9___redArg___closed__4;
x_5 = l_Lean_Name_mkStr4(x_4, x_3, x_2, x_1);
return x_5;
}
}
static lean_object* _init_l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabMacroRulesAux_spec__9___redArg___closed__9() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("|", 1, 1);
return x_1;
}
}
static lean_object* _init_l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabMacroRulesAux_spec__9___redArg___closed__10() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("null", 4, 4);
return x_1;
}
}
static lean_object* _init_l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabMacroRulesAux_spec__9___redArg___closed__11() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabMacroRulesAux_spec__9___redArg___closed__10;
x_2 = l_Lean_Name_mkStr1(x_1);
return x_2;
}
}
static lean_object* _init_l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabMacroRulesAux_spec__9___redArg___closed__12() {
_start:
{
lean_object* x_1; 
x_1 = l_Array_mkArray0(lean_box(0));
return x_1;
}
}
static lean_object* _init_l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabMacroRulesAux_spec__9___redArg___closed__13() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("=>", 2, 2);
return x_1;
}
}
static lean_object* _init_l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabMacroRulesAux_spec__9___redArg___closed__14() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("choice", 6, 6);
return x_1;
}
}
static lean_object* _init_l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabMacroRulesAux_spec__9___redArg___closed__15() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabMacroRulesAux_spec__9___redArg___closed__14;
x_2 = l_Lean_Name_mkStr1(x_1);
return x_2;
}
}
static lean_object* _init_l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabMacroRulesAux_spec__9___redArg___closed__16() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("invalid macro_rules alternative, unexpected syntax node kind `", 62, 62);
return x_1;
}
}
static lean_object* _init_l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabMacroRulesAux_spec__9___redArg___closed__17() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabMacroRulesAux_spec__9___redArg___closed__16;
x_2 = l_Lean_stringToMessageData(x_1);
return x_2;
}
}
static lean_object* _init_l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabMacroRulesAux_spec__9___redArg___closed__18() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_box(0);
x_2 = lean_box(0);
x_3 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_3, 0, x_2);
lean_ctor_set(x_3, 1, x_1);
return x_3;
}
}
LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Lean_Elab_Command_elabMacroRulesAux_spec__7(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, size_t x_5, size_t x_6, lean_object* x_7) {
_start:
{
uint8_t x_8; 
x_8 = lean_usize_dec_lt(x_6, x_5);
if (x_8 == 0)
{
lean_dec(x_1);
lean_inc_ref(x_7);
return x_7;
}
else
{
lean_object* x_9; lean_object* x_10; uint8_t x_11; 
x_9 = lean_array_uget(x_4, x_6);
lean_inc(x_9);
x_10 = l_Lean_Syntax_getKind(x_9);
lean_inc(x_1);
x_11 = l_Lean_Elab_Command_checkRuleKind(x_10, x_1);
lean_dec(x_10);
if (x_11 == 0)
{
size_t x_12; size_t x_13; 
lean_dec(x_9);
x_12 = 1;
x_13 = lean_usize_add(x_6, x_12);
{
size_t _tmp_5 = x_13;
lean_object* _tmp_6 = x_2;
x_6 = _tmp_5;
x_7 = _tmp_6;
}
goto _start;
}
else
{
lean_object* x_15; lean_object* x_16; lean_object* x_17; 
lean_dec(x_1);
x_15 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_15, 0, x_9);
x_16 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_16, 0, x_15);
x_17 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_17, 0, x_16);
lean_ctor_set(x_17, 1, x_3);
return x_17;
}
}
}
}
LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00__private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabMacroRulesAux_spec__9_spec__9(lean_object* x_1, size_t x_2, size_t x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) {
_start:
{
uint8_t x_8; 
x_8 = lean_usize_dec_lt(x_3, x_2);
if (x_8 == 0)
{
lean_object* x_9; 
lean_dec_ref(x_5);
lean_dec(x_1);
x_9 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_9, 0, x_4);
return x_9;
}
else
{
lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_20; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_35; uint8_t x_36; 
x_10 = lean_array_uget(x_4, x_3);
x_11 = lean_unsigned_to_nat(0u);
x_12 = lean_array_uset(x_4, x_3, x_11);
x_35 = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabMacroRulesAux_spec__9___redArg___closed__8;
lean_inc(x_10);
x_36 = l_Lean_Syntax_isOfKind(x_10, x_35);
if (x_36 == 0)
{
lean_object* x_37; 
lean_dec_ref(x_12);
lean_dec(x_10);
lean_dec_ref(x_5);
lean_dec(x_1);
x_37 = l_Lean_Elab_throwUnsupportedSyntax___at___00Lean_Elab_Command_elabMacroRulesAux_spec__0___redArg();
x_20 = x_37;
goto block_24;
}
else
{
lean_object* x_38; lean_object* x_39; uint8_t x_40; 
x_38 = lean_unsigned_to_nat(1u);
x_39 = l_Lean_Syntax_getArg(x_10, x_38);
lean_inc(x_39);
x_40 = l_Lean_Syntax_matchesNull(x_39, x_38);
if (x_40 == 0)
{
lean_object* x_41; 
lean_dec(x_39);
lean_dec_ref(x_12);
lean_dec(x_10);
lean_dec_ref(x_5);
lean_dec(x_1);
x_41 = l_Lean_Elab_throwUnsupportedSyntax___at___00Lean_Elab_Command_elabMacroRulesAux_spec__0___redArg();
x_20 = x_41;
goto block_24;
}
else
{
lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; uint8_t x_100; 
x_42 = l_Lean_Syntax_getArg(x_39, x_11);
lean_dec(x_39);
x_43 = lean_unsigned_to_nat(3u);
x_44 = l_Lean_Syntax_getArg(x_10, x_43);
x_59 = l_Lean_Syntax_getArgs(x_42);
lean_dec(x_42);
x_60 = lean_box(0);
x_61 = lean_array_get(x_60, x_59, x_11);
x_100 = l_Lean_Syntax_isQuot(x_61);
if (x_100 == 0)
{
if (x_40 == 0)
{
lean_inc_ref(x_5);
x_62 = x_5;
x_63 = x_6;
x_64 = lean_box(0);
goto block_99;
}
else
{
lean_object* x_101; uint8_t x_102; 
lean_dec(x_61);
lean_dec_ref(x_59);
lean_dec(x_44);
lean_dec_ref(x_12);
lean_dec(x_10);
lean_dec_ref(x_5);
lean_dec(x_1);
x_101 = l_Lean_Elab_throwUnsupportedSyntax___at___00Lean_Elab_Command_elabMacroRulesAux_spec__0___redArg();
x_102 = !lean_is_exclusive(x_101);
if (x_102 == 0)
{
return x_101;
}
else
{
lean_object* x_103; lean_object* x_104; 
x_103 = lean_ctor_get(x_101, 0);
lean_inc(x_103);
lean_dec(x_101);
x_104 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_104, 0, x_103);
return x_104;
}
}
}
else
{
lean_inc_ref(x_5);
x_62 = x_5;
x_63 = x_6;
x_64 = lean_box(0);
goto block_99;
}
block_58:
{
lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; 
x_48 = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabMacroRulesAux_spec__9___redArg___closed__9;
lean_inc(x_45);
x_49 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_49, 0, x_45);
lean_ctor_set(x_49, 1, x_48);
x_50 = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabMacroRulesAux_spec__9___redArg___closed__11;
x_51 = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabMacroRulesAux_spec__9___redArg___closed__12;
x_52 = l_Array_append___redArg(x_51, x_46);
lean_dec_ref(x_46);
lean_inc(x_45);
x_53 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_53, 0, x_45);
lean_ctor_set(x_53, 1, x_50);
lean_ctor_set(x_53, 2, x_52);
lean_inc(x_45);
x_54 = l_Lean_Syntax_node1(x_45, x_50, x_53);
x_55 = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabMacroRulesAux_spec__9___redArg___closed__13;
lean_inc(x_45);
x_56 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_56, 0, x_45);
lean_ctor_set(x_56, 1, x_55);
x_57 = l_Lean_Syntax_node4(x_45, x_35, x_49, x_54, x_56, x_44);
x_13 = x_57;
x_14 = lean_box(0);
goto block_19;
}
block_99:
{
lean_object* x_65; lean_object* x_66; uint8_t x_67; 
lean_inc(x_61);
x_65 = l_Lean_Syntax_getQuotContent(x_61);
lean_inc(x_65);
x_66 = l_Lean_Syntax_getKind(x_65);
lean_inc(x_1);
x_67 = l_Lean_Elab_Command_checkRuleKind(x_66, x_1);
if (x_67 == 0)
{
lean_object* x_68; uint8_t x_69; 
x_68 = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabMacroRulesAux_spec__9___redArg___closed__15;
x_69 = lean_name_eq(x_66, x_68);
if (x_69 == 0)
{
lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; 
lean_dec(x_65);
lean_dec(x_61);
lean_dec_ref(x_59);
lean_dec(x_44);
lean_dec_ref(x_12);
lean_dec_ref(x_5);
lean_dec(x_1);
x_70 = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabMacroRulesAux_spec__9___redArg___closed__17;
x_71 = l_Lean_MessageData_ofName(x_66);
x_72 = lean_alloc_ctor(7, 2, 0);
lean_ctor_set(x_72, 0, x_70);
lean_ctor_set(x_72, 1, x_71);
x_73 = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabMacroRulesAux_spec__9___redArg___closed__3;
x_74 = lean_alloc_ctor(7, 2, 0);
lean_ctor_set(x_74, 0, x_72);
lean_ctor_set(x_74, 1, x_73);
x_75 = l_Lean_throwErrorAt___at___00Lean_Elab_Command_elabMacroRulesAux_spec__1___redArg(x_10, x_74, x_62, x_63);
lean_dec(x_10);
x_20 = x_75;
goto block_24;
}
else
{
lean_object* x_76; lean_object* x_77; lean_object* x_78; size_t x_79; size_t x_80; lean_object* x_81; lean_object* x_82; 
lean_dec(x_66);
x_76 = l_Lean_Syntax_getArgs(x_65);
lean_dec(x_65);
x_77 = lean_box(0);
x_78 = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabMacroRulesAux_spec__9___redArg___closed__18;
x_79 = lean_array_size(x_76);
x_80 = 0;
lean_inc(x_1);
x_81 = l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Lean_Elab_Command_elabMacroRulesAux_spec__7(x_1, x_78, x_77, x_76, x_79, x_80, x_78);
lean_dec_ref(x_76);
x_82 = lean_ctor_get(x_81, 0);
lean_inc(x_82);
lean_dec_ref(x_81);
if (lean_obj_tag(x_82) == 0)
{
lean_dec(x_61);
lean_dec_ref(x_59);
lean_dec(x_44);
lean_dec_ref(x_12);
lean_dec_ref(x_5);
x_25 = lean_box(0);
x_26 = x_62;
x_27 = x_63;
goto block_34;
}
else
{
lean_object* x_83; 
x_83 = lean_ctor_get(x_82, 0);
lean_inc(x_83);
lean_dec_ref(x_82);
if (lean_obj_tag(x_83) == 0)
{
lean_dec(x_61);
lean_dec_ref(x_59);
lean_dec(x_44);
lean_dec_ref(x_12);
lean_dec_ref(x_5);
x_25 = lean_box(0);
x_26 = x_62;
x_27 = x_63;
goto block_34;
}
else
{
lean_object* x_84; lean_object* x_85; 
lean_dec(x_10);
x_84 = lean_ctor_get(x_83, 0);
lean_inc(x_84);
lean_dec_ref(x_83);
x_85 = l_Lean_Elab_Command_getRef___redArg(x_62);
if (lean_obj_tag(x_85) == 0)
{
lean_object* x_86; lean_object* x_87; 
x_86 = lean_ctor_get(x_85, 0);
lean_inc(x_86);
lean_dec_ref(x_85);
x_87 = l_Lean_Elab_Command_getCurrMacroScope___redArg(x_62);
if (lean_obj_tag(x_87) == 0)
{
lean_object* x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91; 
lean_dec_ref(x_87);
x_88 = lean_ctor_get(x_62, 5);
lean_inc(x_88);
lean_dec_ref(x_62);
x_89 = l_Lean_Syntax_setArg(x_61, x_38, x_84);
x_90 = lean_array_set(x_59, x_11, x_89);
x_91 = l_Lean_SourceInfo_fromRef(x_86, x_67);
lean_dec(x_86);
if (lean_obj_tag(x_88) == 0)
{
lean_object* x_92; 
x_92 = l_Lean_getMainModule___at___00Lean_Elab_Command_elabMacroRulesAux_spec__8___redArg(x_63);
lean_dec_ref(x_92);
x_45 = x_91;
x_46 = x_90;
x_47 = lean_box(0);
goto block_58;
}
else
{
lean_dec_ref(x_88);
x_45 = x_91;
x_46 = x_90;
x_47 = lean_box(0);
goto block_58;
}
}
else
{
uint8_t x_93; 
lean_dec(x_86);
lean_dec(x_84);
lean_dec_ref(x_62);
lean_dec(x_61);
lean_dec_ref(x_59);
lean_dec(x_44);
lean_dec_ref(x_12);
lean_dec_ref(x_5);
lean_dec(x_1);
x_93 = !lean_is_exclusive(x_87);
if (x_93 == 0)
{
return x_87;
}
else
{
lean_object* x_94; lean_object* x_95; 
x_94 = lean_ctor_get(x_87, 0);
lean_inc(x_94);
lean_dec(x_87);
x_95 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_95, 0, x_94);
return x_95;
}
}
}
else
{
uint8_t x_96; 
lean_dec(x_84);
lean_dec_ref(x_62);
lean_dec(x_61);
lean_dec_ref(x_59);
lean_dec(x_44);
lean_dec_ref(x_12);
lean_dec_ref(x_5);
lean_dec(x_1);
x_96 = !lean_is_exclusive(x_85);
if (x_96 == 0)
{
return x_85;
}
else
{
lean_object* x_97; lean_object* x_98; 
x_97 = lean_ctor_get(x_85, 0);
lean_inc(x_97);
lean_dec(x_85);
x_98 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_98, 0, x_97);
return x_98;
}
}
}
}
}
}
else
{
lean_dec(x_66);
lean_dec(x_65);
lean_dec_ref(x_62);
lean_dec(x_61);
lean_dec_ref(x_59);
lean_dec(x_44);
x_13 = x_10;
x_14 = lean_box(0);
goto block_19;
}
}
}
}
block_19:
{
size_t x_15; size_t x_16; lean_object* x_17; 
x_15 = 1;
x_16 = lean_usize_add(x_3, x_15);
x_17 = lean_array_uset(x_12, x_3, x_13);
x_3 = x_16;
x_4 = x_17;
goto _start;
}
block_24:
{
uint8_t x_21; 
x_21 = !lean_is_exclusive(x_20);
if (x_21 == 0)
{
return x_20;
}
else
{
lean_object* x_22; lean_object* x_23; 
x_22 = lean_ctor_get(x_20, 0);
lean_inc(x_22);
lean_dec(x_20);
x_23 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_23, 0, x_22);
return x_23;
}
}
block_34:
{
lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; 
x_28 = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabMacroRulesAux_spec__9___redArg___closed__1;
x_29 = l_Lean_MessageData_ofName(x_1);
x_30 = lean_alloc_ctor(7, 2, 0);
lean_ctor_set(x_30, 0, x_28);
lean_ctor_set(x_30, 1, x_29);
x_31 = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabMacroRulesAux_spec__9___redArg___closed__3;
x_32 = lean_alloc_ctor(7, 2, 0);
lean_ctor_set(x_32, 0, x_30);
lean_ctor_set(x_32, 1, x_31);
x_33 = l_Lean_throwErrorAt___at___00Lean_Elab_Command_elabMacroRulesAux_spec__1___redArg(x_10, x_32, x_26, x_27);
lean_dec(x_10);
x_20 = x_33;
goto block_24;
}
}
}
}
LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabMacroRulesAux_spec__9___redArg(lean_object* x_1, size_t x_2, size_t x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) {
_start:
{
uint8_t x_8; 
x_8 = lean_usize_dec_lt(x_3, x_2);
if (x_8 == 0)
{
lean_object* x_9; 
lean_dec_ref(x_5);
lean_dec(x_1);
x_9 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_9, 0, x_4);
return x_9;
}
else
{
lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_20; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_35; uint8_t x_36; 
x_10 = lean_array_uget(x_4, x_3);
x_11 = lean_unsigned_to_nat(0u);
x_12 = lean_array_uset(x_4, x_3, x_11);
x_35 = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabMacroRulesAux_spec__9___redArg___closed__8;
lean_inc(x_10);
x_36 = l_Lean_Syntax_isOfKind(x_10, x_35);
if (x_36 == 0)
{
lean_object* x_37; 
lean_dec_ref(x_12);
lean_dec(x_10);
lean_dec_ref(x_5);
lean_dec(x_1);
x_37 = l_Lean_Elab_throwUnsupportedSyntax___at___00Lean_Elab_Command_elabMacroRulesAux_spec__0___redArg();
x_20 = x_37;
goto block_24;
}
else
{
lean_object* x_38; lean_object* x_39; uint8_t x_40; 
x_38 = lean_unsigned_to_nat(1u);
x_39 = l_Lean_Syntax_getArg(x_10, x_38);
lean_inc(x_39);
x_40 = l_Lean_Syntax_matchesNull(x_39, x_38);
if (x_40 == 0)
{
lean_object* x_41; 
lean_dec(x_39);
lean_dec_ref(x_12);
lean_dec(x_10);
lean_dec_ref(x_5);
lean_dec(x_1);
x_41 = l_Lean_Elab_throwUnsupportedSyntax___at___00Lean_Elab_Command_elabMacroRulesAux_spec__0___redArg();
x_20 = x_41;
goto block_24;
}
else
{
lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; uint8_t x_100; 
x_42 = l_Lean_Syntax_getArg(x_39, x_11);
lean_dec(x_39);
x_43 = lean_unsigned_to_nat(3u);
x_44 = l_Lean_Syntax_getArg(x_10, x_43);
x_59 = l_Lean_Syntax_getArgs(x_42);
lean_dec(x_42);
x_60 = lean_box(0);
x_61 = lean_array_get(x_60, x_59, x_11);
x_100 = l_Lean_Syntax_isQuot(x_61);
if (x_100 == 0)
{
if (x_40 == 0)
{
lean_inc_ref(x_5);
x_62 = x_5;
x_63 = x_6;
x_64 = lean_box(0);
goto block_99;
}
else
{
lean_object* x_101; uint8_t x_102; 
lean_dec(x_61);
lean_dec_ref(x_59);
lean_dec(x_44);
lean_dec_ref(x_12);
lean_dec(x_10);
lean_dec_ref(x_5);
lean_dec(x_1);
x_101 = l_Lean_Elab_throwUnsupportedSyntax___at___00Lean_Elab_Command_elabMacroRulesAux_spec__0___redArg();
x_102 = !lean_is_exclusive(x_101);
if (x_102 == 0)
{
return x_101;
}
else
{
lean_object* x_103; lean_object* x_104; 
x_103 = lean_ctor_get(x_101, 0);
lean_inc(x_103);
lean_dec(x_101);
x_104 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_104, 0, x_103);
return x_104;
}
}
}
else
{
lean_inc_ref(x_5);
x_62 = x_5;
x_63 = x_6;
x_64 = lean_box(0);
goto block_99;
}
block_58:
{
lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; 
x_48 = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabMacroRulesAux_spec__9___redArg___closed__9;
lean_inc(x_46);
x_49 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_49, 0, x_46);
lean_ctor_set(x_49, 1, x_48);
x_50 = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabMacroRulesAux_spec__9___redArg___closed__11;
x_51 = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabMacroRulesAux_spec__9___redArg___closed__12;
x_52 = l_Array_append___redArg(x_51, x_45);
lean_dec_ref(x_45);
lean_inc(x_46);
x_53 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_53, 0, x_46);
lean_ctor_set(x_53, 1, x_50);
lean_ctor_set(x_53, 2, x_52);
lean_inc(x_46);
x_54 = l_Lean_Syntax_node1(x_46, x_50, x_53);
x_55 = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabMacroRulesAux_spec__9___redArg___closed__13;
lean_inc(x_46);
x_56 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_56, 0, x_46);
lean_ctor_set(x_56, 1, x_55);
x_57 = l_Lean_Syntax_node4(x_46, x_35, x_49, x_54, x_56, x_44);
x_13 = x_57;
x_14 = lean_box(0);
goto block_19;
}
block_99:
{
lean_object* x_65; lean_object* x_66; uint8_t x_67; 
lean_inc(x_61);
x_65 = l_Lean_Syntax_getQuotContent(x_61);
lean_inc(x_65);
x_66 = l_Lean_Syntax_getKind(x_65);
lean_inc(x_1);
x_67 = l_Lean_Elab_Command_checkRuleKind(x_66, x_1);
if (x_67 == 0)
{
lean_object* x_68; uint8_t x_69; 
x_68 = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabMacroRulesAux_spec__9___redArg___closed__15;
x_69 = lean_name_eq(x_66, x_68);
if (x_69 == 0)
{
lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; 
lean_dec(x_65);
lean_dec(x_61);
lean_dec_ref(x_59);
lean_dec(x_44);
lean_dec_ref(x_12);
lean_dec_ref(x_5);
lean_dec(x_1);
x_70 = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabMacroRulesAux_spec__9___redArg___closed__17;
x_71 = l_Lean_MessageData_ofName(x_66);
x_72 = lean_alloc_ctor(7, 2, 0);
lean_ctor_set(x_72, 0, x_70);
lean_ctor_set(x_72, 1, x_71);
x_73 = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabMacroRulesAux_spec__9___redArg___closed__3;
x_74 = lean_alloc_ctor(7, 2, 0);
lean_ctor_set(x_74, 0, x_72);
lean_ctor_set(x_74, 1, x_73);
x_75 = l_Lean_throwErrorAt___at___00Lean_Elab_Command_elabMacroRulesAux_spec__1___redArg(x_10, x_74, x_62, x_63);
lean_dec(x_10);
x_20 = x_75;
goto block_24;
}
else
{
lean_object* x_76; lean_object* x_77; lean_object* x_78; size_t x_79; size_t x_80; lean_object* x_81; lean_object* x_82; 
lean_dec(x_66);
x_76 = l_Lean_Syntax_getArgs(x_65);
lean_dec(x_65);
x_77 = lean_box(0);
x_78 = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabMacroRulesAux_spec__9___redArg___closed__18;
x_79 = lean_array_size(x_76);
x_80 = 0;
lean_inc(x_1);
x_81 = l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Lean_Elab_Command_elabMacroRulesAux_spec__7(x_1, x_78, x_77, x_76, x_79, x_80, x_78);
lean_dec_ref(x_76);
x_82 = lean_ctor_get(x_81, 0);
lean_inc(x_82);
lean_dec_ref(x_81);
if (lean_obj_tag(x_82) == 0)
{
lean_dec(x_61);
lean_dec_ref(x_59);
lean_dec(x_44);
lean_dec_ref(x_12);
lean_dec_ref(x_5);
x_25 = lean_box(0);
x_26 = x_63;
x_27 = x_62;
goto block_34;
}
else
{
lean_object* x_83; 
x_83 = lean_ctor_get(x_82, 0);
lean_inc(x_83);
lean_dec_ref(x_82);
if (lean_obj_tag(x_83) == 0)
{
lean_dec(x_61);
lean_dec_ref(x_59);
lean_dec(x_44);
lean_dec_ref(x_12);
lean_dec_ref(x_5);
x_25 = lean_box(0);
x_26 = x_63;
x_27 = x_62;
goto block_34;
}
else
{
lean_object* x_84; lean_object* x_85; 
lean_dec(x_10);
x_84 = lean_ctor_get(x_83, 0);
lean_inc(x_84);
lean_dec_ref(x_83);
x_85 = l_Lean_Elab_Command_getRef___redArg(x_62);
if (lean_obj_tag(x_85) == 0)
{
lean_object* x_86; lean_object* x_87; 
x_86 = lean_ctor_get(x_85, 0);
lean_inc(x_86);
lean_dec_ref(x_85);
x_87 = l_Lean_Elab_Command_getCurrMacroScope___redArg(x_62);
if (lean_obj_tag(x_87) == 0)
{
lean_object* x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91; 
lean_dec_ref(x_87);
x_88 = lean_ctor_get(x_62, 5);
lean_inc(x_88);
lean_dec_ref(x_62);
x_89 = l_Lean_Syntax_setArg(x_61, x_38, x_84);
x_90 = lean_array_set(x_59, x_11, x_89);
x_91 = l_Lean_SourceInfo_fromRef(x_86, x_67);
lean_dec(x_86);
if (lean_obj_tag(x_88) == 0)
{
lean_object* x_92; 
x_92 = l_Lean_getMainModule___at___00Lean_Elab_Command_elabMacroRulesAux_spec__8___redArg(x_63);
lean_dec_ref(x_92);
x_45 = x_90;
x_46 = x_91;
x_47 = lean_box(0);
goto block_58;
}
else
{
lean_dec_ref(x_88);
x_45 = x_90;
x_46 = x_91;
x_47 = lean_box(0);
goto block_58;
}
}
else
{
uint8_t x_93; 
lean_dec(x_86);
lean_dec(x_84);
lean_dec_ref(x_62);
lean_dec(x_61);
lean_dec_ref(x_59);
lean_dec(x_44);
lean_dec_ref(x_12);
lean_dec_ref(x_5);
lean_dec(x_1);
x_93 = !lean_is_exclusive(x_87);
if (x_93 == 0)
{
return x_87;
}
else
{
lean_object* x_94; lean_object* x_95; 
x_94 = lean_ctor_get(x_87, 0);
lean_inc(x_94);
lean_dec(x_87);
x_95 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_95, 0, x_94);
return x_95;
}
}
}
else
{
uint8_t x_96; 
lean_dec(x_84);
lean_dec_ref(x_62);
lean_dec(x_61);
lean_dec_ref(x_59);
lean_dec(x_44);
lean_dec_ref(x_12);
lean_dec_ref(x_5);
lean_dec(x_1);
x_96 = !lean_is_exclusive(x_85);
if (x_96 == 0)
{
return x_85;
}
else
{
lean_object* x_97; lean_object* x_98; 
x_97 = lean_ctor_get(x_85, 0);
lean_inc(x_97);
lean_dec(x_85);
x_98 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_98, 0, x_97);
return x_98;
}
}
}
}
}
}
else
{
lean_dec(x_66);
lean_dec(x_65);
lean_dec_ref(x_62);
lean_dec(x_61);
lean_dec_ref(x_59);
lean_dec(x_44);
x_13 = x_10;
x_14 = lean_box(0);
goto block_19;
}
}
}
}
block_19:
{
size_t x_15; size_t x_16; lean_object* x_17; lean_object* x_18; 
x_15 = 1;
x_16 = lean_usize_add(x_3, x_15);
x_17 = lean_array_uset(x_12, x_3, x_13);
x_18 = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00__private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabMacroRulesAux_spec__9_spec__9(x_1, x_2, x_16, x_17, x_5, x_6);
return x_18;
}
block_24:
{
uint8_t x_21; 
x_21 = !lean_is_exclusive(x_20);
if (x_21 == 0)
{
return x_20;
}
else
{
lean_object* x_22; lean_object* x_23; 
x_22 = lean_ctor_get(x_20, 0);
lean_inc(x_22);
lean_dec(x_20);
x_23 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_23, 0, x_22);
return x_23;
}
}
block_34:
{
lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; 
x_28 = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabMacroRulesAux_spec__9___redArg___closed__1;
x_29 = l_Lean_MessageData_ofName(x_1);
x_30 = lean_alloc_ctor(7, 2, 0);
lean_ctor_set(x_30, 0, x_28);
lean_ctor_set(x_30, 1, x_29);
x_31 = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabMacroRulesAux_spec__9___redArg___closed__3;
x_32 = lean_alloc_ctor(7, 2, 0);
lean_ctor_set(x_32, 0, x_30);
lean_ctor_set(x_32, 1, x_31);
x_33 = l_Lean_throwErrorAt___at___00Lean_Elab_Command_elabMacroRulesAux_spec__1___redArg(x_10, x_32, x_27, x_26);
lean_dec(x_10);
x_20 = x_33;
goto block_24;
}
}
}
}
LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabMacroRulesAux_spec__9(lean_object* x_1, lean_object* x_2, size_t x_3, size_t x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) {
_start:
{
lean_object* x_9; 
x_9 = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabMacroRulesAux_spec__9___redArg(x_2, x_3, x_4, x_5, x_6, x_7);
return x_9;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabMacroRulesAux___closed__0() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("attributes", 10, 10);
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabMacroRulesAux___closed__1() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("@[", 2, 2);
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabMacroRulesAux___closed__2() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("]", 1, 1);
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabMacroRulesAux___closed__3() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("macroRules", 10, 10);
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabMacroRulesAux___closed__4() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_Elab_Command_elabMacroRulesAux___closed__3;
x_2 = l_String_toRawSubstring_x27(x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabMacroRulesAux___closed__5() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_Elab_Command_elabMacroRulesAux___closed__3;
x_2 = l_Lean_Name_mkStr1(x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabMacroRulesAux___closed__6() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked(":", 1, 1);
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabMacroRulesAux___closed__7() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("Macro", 5, 5);
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabMacroRulesAux___closed__8() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_Elab_Command_elabMacroRulesAux___closed__7;
x_2 = l_String_toRawSubstring_x27(x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabMacroRulesAux___closed__9() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_Elab_Command_elabMacroRulesAux___closed__7;
x_2 = l_Lean_Name_mkStr1(x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabMacroRulesAux___closed__10() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked(":=", 2, 2);
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabMacroRulesAux___closed__11() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("fun", 3, 3);
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabMacroRulesAux___closed__12() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("matchAlts", 9, 9);
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabMacroRulesAux___closed__13() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("hole", 4, 4);
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabMacroRulesAux___closed__14() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("_", 1, 1);
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabMacroRulesAux___closed__15() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("noErrorIfUnused", 15, 15);
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabMacroRulesAux___closed__16() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("no_error_if_unused%", 19, 19);
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabMacroRulesAux___closed__17() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("app", 3, 3);
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabMacroRulesAux___closed__18() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("throw", 5, 5);
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabMacroRulesAux___closed__19() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_Elab_Command_elabMacroRulesAux___closed__18;
x_2 = l_String_toRawSubstring_x27(x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabMacroRulesAux___closed__20() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_Elab_Command_elabMacroRulesAux___closed__18;
x_2 = l_Lean_Name_mkStr1(x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabMacroRulesAux___closed__21() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("MonadExcept", 11, 11);
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabMacroRulesAux___closed__22() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Lean_Elab_Command_elabMacroRulesAux___closed__18;
x_2 = l_Lean_Elab_Command_elabMacroRulesAux___closed__21;
x_3 = l_Lean_Name_mkStr2(x_2, x_1);
return x_3;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabMacroRulesAux___closed__23() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_box(0);
x_2 = l_Lean_Elab_Command_elabMacroRulesAux___closed__22;
x_3 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_3, 0, x_2);
lean_ctor_set(x_3, 1, x_1);
return x_3;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabMacroRulesAux___closed__24() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_box(0);
x_2 = l_Lean_Elab_Command_elabMacroRulesAux___closed__23;
x_3 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_3, 0, x_2);
lean_ctor_set(x_3, 1, x_1);
return x_3;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabMacroRulesAux___closed__25() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("Lean.Macro.Exception.unsupportedSyntax", 38, 38);
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabMacroRulesAux___closed__26() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_Elab_Command_elabMacroRulesAux___closed__25;
x_2 = l_String_toRawSubstring_x27(x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabMacroRulesAux___closed__27() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("Exception", 9, 9);
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabMacroRulesAux___closed__28() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("unsupportedSyntax", 17, 17);
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabMacroRulesAux___closed__29() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = lean_unsigned_to_nat(9u);
x_2 = lean_mk_empty_array_with_capacity(x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabMacroRulesAux___closed__30() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("Elab", 4, 4);
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabMacroRulesAux___closed__31() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("Command", 7, 7);
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabMacroRulesAux___closed__32() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("aux_def", 7, 7);
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabMacroRulesAux___closed__33() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; 
x_1 = l_Lean_Elab_Command_elabMacroRulesAux___closed__32;
x_2 = l_Lean_Elab_Command_elabMacroRulesAux___closed__31;
x_3 = l_Lean_Elab_Command_elabMacroRulesAux___closed__30;
x_4 = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabMacroRulesAux_spec__9___redArg___closed__4;
x_5 = l_Lean_Name_mkStr4(x_4, x_3, x_2, x_1);
return x_5;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabMacroRulesAux___closed__34() {
_start:
{
lean_object* x_1; 
x_1 = l_Array_empty(lean_box(0));
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabMacroRulesAux___closed__35() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("attrInstance", 12, 12);
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabMacroRulesAux___closed__36() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; 
x_1 = l_Lean_Elab_Command_elabMacroRulesAux___closed__35;
x_2 = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabMacroRulesAux_spec__9___redArg___closed__6;
x_3 = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabMacroRulesAux_spec__9___redArg___closed__5;
x_4 = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabMacroRulesAux_spec__9___redArg___closed__4;
x_5 = l_Lean_Name_mkStr4(x_4, x_3, x_2, x_1);
return x_5;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabMacroRulesAux___closed__37() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("Attr", 4, 4);
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabMacroRulesAux___closed__38() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("macro", 5, 5);
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabMacroRulesAux___closed__39() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; 
x_1 = l_Lean_Elab_Command_elabMacroRulesAux___closed__38;
x_2 = l_Lean_Elab_Command_elabMacroRulesAux___closed__37;
x_3 = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabMacroRulesAux_spec__9___redArg___closed__5;
x_4 = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabMacroRulesAux_spec__9___redArg___closed__4;
x_5 = l_Lean_Name_mkStr4(x_4, x_3, x_2, x_1);
return x_5;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabMacroRulesAux___closed__40() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked(",", 1, 1);
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabMacroRulesAux___closed__41() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = lean_unsigned_to_nat(1u);
x_2 = lean_mk_empty_array_with_capacity(x_1);
return x_2;
}
}
LEAN_EXPORT lean_object* l_Lean_Elab_Command_elabMacroRulesAux(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) {
_start:
{
size_t x_10; size_t x_11; lean_object* x_12; 
x_10 = lean_array_size(x_6);
x_11 = 0;
lean_inc_ref(x_7);
lean_inc(x_5);
x_12 = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabMacroRulesAux_spec__9___redArg(x_5, x_10, x_11, x_6, x_7, x_8);
if (lean_obj_tag(x_12) == 0)
{
lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_125; lean_object* x_126; lean_object* x_127; lean_object* x_128; lean_object* x_129; lean_object* x_130; lean_object* x_140; 
x_13 = lean_ctor_get(x_12, 0);
lean_inc(x_13);
if (lean_is_exclusive(x_12)) {
 lean_ctor_release(x_12, 0);
 x_14 = x_12;
} else {
 lean_dec_ref(x_12);
 x_14 = lean_box(0);
}
x_140 = l_Lean_Elab_Command_getRef___redArg(x_7);
if (lean_obj_tag(x_140) == 0)
{
lean_object* x_141; lean_object* x_142; 
x_141 = lean_ctor_get(x_140, 0);
lean_inc(x_141);
lean_dec_ref(x_140);
x_142 = l_Lean_Elab_Command_getCurrMacroScope___redArg(x_7);
if (lean_obj_tag(x_142) == 0)
{
lean_object* x_143; uint8_t x_144; lean_object* x_145; lean_object* x_146; lean_object* x_160; lean_object* x_161; 
lean_dec_ref(x_142);
x_143 = lean_ctor_get(x_7, 5);
lean_inc(x_143);
x_144 = 0;
x_160 = l_Lean_SourceInfo_fromRef(x_141, x_144);
lean_dec(x_141);
if (lean_obj_tag(x_143) == 0)
{
lean_object* x_179; 
x_179 = l_Lean_getMainModule___at___00Lean_Elab_Command_elabMacroRulesAux_spec__8___redArg(x_8);
lean_dec_ref(x_179);
x_161 = lean_box(0);
goto block_178;
}
else
{
x_161 = lean_box(0);
goto block_178;
}
block_159:
{
lean_object* x_147; 
x_147 = l_Lean_Elab_Command_getRef___redArg(x_7);
if (lean_obj_tag(x_147) == 0)
{
lean_object* x_148; lean_object* x_149; 
x_148 = lean_ctor_get(x_147, 0);
lean_inc(x_148);
lean_dec_ref(x_147);
x_149 = l_Lean_Elab_Command_getCurrMacroScope___redArg(x_7);
lean_dec_ref(x_7);
if (lean_obj_tag(x_149) == 0)
{
lean_object* x_150; lean_object* x_151; lean_object* x_152; 
x_150 = lean_ctor_get(x_149, 0);
lean_inc(x_150);
lean_dec_ref(x_149);
x_151 = l_Lean_Parser_Command_visibility_ofAttrKind(x_3);
x_152 = l_Lean_SourceInfo_fromRef(x_148, x_144);
lean_dec(x_148);
if (lean_obj_tag(x_143) == 0)
{
lean_object* x_153; lean_object* x_154; 
x_153 = l_Lean_getMainModule___at___00Lean_Elab_Command_elabMacroRulesAux_spec__8___redArg(x_8);
x_154 = lean_ctor_get(x_153, 0);
lean_inc(x_154);
lean_dec_ref(x_153);
x_125 = x_146;
x_126 = x_151;
x_127 = x_150;
x_128 = x_152;
x_129 = x_154;
x_130 = lean_box(0);
goto block_139;
}
else
{
lean_object* x_155; 
x_155 = lean_ctor_get(x_143, 0);
lean_inc(x_155);
lean_dec_ref(x_143);
x_125 = x_146;
x_126 = x_151;
x_127 = x_150;
x_128 = x_152;
x_129 = x_155;
x_130 = lean_box(0);
goto block_139;
}
}
else
{
uint8_t x_156; 
lean_dec(x_148);
lean_dec_ref(x_146);
lean_dec(x_143);
lean_dec(x_14);
lean_dec(x_13);
lean_dec(x_5);
lean_dec(x_3);
lean_dec(x_1);
x_156 = !lean_is_exclusive(x_149);
if (x_156 == 0)
{
return x_149;
}
else
{
lean_object* x_157; lean_object* x_158; 
x_157 = lean_ctor_get(x_149, 0);
lean_inc(x_157);
lean_dec(x_149);
x_158 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_158, 0, x_157);
return x_158;
}
}
}
else
{
lean_dec_ref(x_146);
lean_dec(x_143);
lean_dec(x_14);
lean_dec(x_13);
lean_dec_ref(x_7);
lean_dec(x_5);
lean_dec(x_3);
lean_dec(x_1);
return x_147;
}
}
block_178:
{
lean_object* x_162; lean_object* x_163; lean_object* x_164; lean_object* x_165; lean_object* x_166; lean_object* x_167; lean_object* x_168; 
x_162 = l_Lean_Elab_Command_elabMacroRulesAux___closed__36;
x_163 = l_Lean_Elab_Command_elabMacroRulesAux___closed__38;
x_164 = l_Lean_Elab_Command_elabMacroRulesAux___closed__39;
lean_inc(x_160);
x_165 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_165, 0, x_160);
lean_ctor_set(x_165, 1, x_163);
lean_inc(x_5);
x_166 = lean_mk_syntax_ident(x_5);
lean_inc(x_160);
x_167 = l_Lean_Syntax_node2(x_160, x_164, x_165, x_166);
lean_inc(x_3);
x_168 = l_Lean_Syntax_node2(x_160, x_162, x_3, x_167);
if (lean_obj_tag(x_2) == 0)
{
lean_object* x_169; lean_object* x_170; lean_object* x_171; lean_object* x_172; 
x_169 = l_Lean_Elab_Command_elabMacroRulesAux___closed__40;
x_170 = l_Lean_Elab_Command_elabMacroRulesAux___closed__41;
x_171 = lean_array_push(x_170, x_168);
x_172 = l_Lean_Syntax_SepArray_ofElems(x_169, x_171);
lean_dec_ref(x_171);
x_145 = lean_box(0);
x_146 = x_172;
goto block_159;
}
else
{
lean_object* x_173; lean_object* x_174; lean_object* x_175; lean_object* x_176; lean_object* x_177; 
x_173 = lean_ctor_get(x_2, 0);
x_174 = l_Lean_Elab_Command_elabMacroRulesAux___closed__40;
x_175 = l_Lean_Syntax_TSepArray_getElems___redArg(x_173);
x_176 = lean_array_push(x_175, x_168);
x_177 = l_Lean_Syntax_SepArray_ofElems(x_174, x_176);
lean_dec_ref(x_176);
x_145 = lean_box(0);
x_146 = x_177;
goto block_159;
}
}
}
else
{
uint8_t x_180; 
lean_dec(x_141);
lean_dec(x_14);
lean_dec(x_13);
lean_dec_ref(x_7);
lean_dec(x_5);
lean_dec(x_3);
lean_dec(x_1);
x_180 = !lean_is_exclusive(x_142);
if (x_180 == 0)
{
return x_142;
}
else
{
lean_object* x_181; lean_object* x_182; 
x_181 = lean_ctor_get(x_142, 0);
lean_inc(x_181);
lean_dec(x_142);
x_182 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_182, 0, x_181);
return x_182;
}
}
}
else
{
lean_dec(x_14);
lean_dec(x_13);
lean_dec_ref(x_7);
lean_dec(x_5);
lean_dec(x_3);
lean_dec(x_1);
return x_140;
}
block_124:
{
lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; uint8_t x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; lean_object* x_99; lean_object* x_100; lean_object* x_101; lean_object* x_102; lean_object* x_103; lean_object* x_104; lean_object* x_105; lean_object* x_106; lean_object* x_107; lean_object* x_108; lean_object* x_109; lean_object* x_110; lean_object* x_111; lean_object* x_112; lean_object* x_113; lean_object* x_114; lean_object* x_115; lean_object* x_116; lean_object* x_117; lean_object* x_118; lean_object* x_119; lean_object* x_120; lean_object* x_121; lean_object* x_122; lean_object* x_123; 
lean_inc_ref(x_24);
x_27 = l_Array_append___redArg(x_24, x_26);
lean_dec_ref(x_26);
lean_inc(x_21);
lean_inc(x_25);
x_28 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_28, 0, x_25);
lean_ctor_set(x_28, 1, x_21);
lean_ctor_set(x_28, 2, x_27);
x_29 = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabMacroRulesAux_spec__9___redArg___closed__5;
x_30 = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabMacroRulesAux_spec__9___redArg___closed__6;
x_31 = l_Lean_Elab_Command_elabMacroRulesAux___closed__0;
lean_inc_ref(x_19);
x_32 = l_Lean_Name_mkStr4(x_19, x_29, x_30, x_31);
x_33 = l_Lean_Elab_Command_elabMacroRulesAux___closed__1;
lean_inc(x_25);
x_34 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_34, 0, x_25);
lean_ctor_set(x_34, 1, x_33);
lean_inc_ref(x_24);
x_35 = l_Array_append___redArg(x_24, x_16);
lean_dec_ref(x_16);
lean_inc(x_21);
lean_inc(x_25);
x_36 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_36, 0, x_25);
lean_ctor_set(x_36, 1, x_21);
lean_ctor_set(x_36, 2, x_35);
x_37 = l_Lean_Elab_Command_elabMacroRulesAux___closed__2;
lean_inc(x_25);
x_38 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_38, 0, x_25);
lean_ctor_set(x_38, 1, x_37);
lean_inc(x_25);
x_39 = l_Lean_Syntax_node3(x_25, x_32, x_34, x_36, x_38);
lean_inc(x_21);
lean_inc(x_25);
x_40 = l_Lean_Syntax_node1(x_25, x_21, x_39);
lean_inc(x_25);
x_41 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_41, 0, x_25);
lean_ctor_set(x_41, 1, x_20);
x_42 = l_Lean_Elab_Command_elabMacroRulesAux___closed__4;
x_43 = l_Lean_Elab_Command_elabMacroRulesAux___closed__5;
lean_inc(x_22);
lean_inc(x_23);
x_44 = l_Lean_addMacroScope(x_23, x_43, x_22);
x_45 = lean_box(0);
lean_inc(x_25);
x_46 = lean_alloc_ctor(3, 4, 0);
lean_ctor_set(x_46, 0, x_25);
lean_ctor_set(x_46, 1, x_42);
lean_ctor_set(x_46, 2, x_44);
lean_ctor_set(x_46, 3, x_45);
x_47 = 1;
x_48 = l_Lean_mkIdentFrom(x_4, x_5, x_47);
lean_inc(x_21);
lean_inc(x_25);
x_49 = l_Lean_Syntax_node2(x_25, x_21, x_46, x_48);
x_50 = l_Lean_Elab_Command_elabMacroRulesAux___closed__6;
lean_inc(x_25);
x_51 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_51, 0, x_25);
lean_ctor_set(x_51, 1, x_50);
x_52 = l_Lean_Elab_Command_elabMacroRulesAux___closed__7;
x_53 = l_Lean_Elab_Command_elabMacroRulesAux___closed__8;
x_54 = l_Lean_Elab_Command_elabMacroRulesAux___closed__9;
lean_inc(x_22);
lean_inc(x_23);
x_55 = l_Lean_addMacroScope(x_23, x_54, x_22);
lean_inc_ref(x_19);
x_56 = l_Lean_Name_mkStr2(x_19, x_52);
lean_inc(x_56);
x_57 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_57, 0, x_56);
lean_ctor_set(x_57, 1, x_45);
x_58 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_58, 0, x_56);
x_59 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_59, 0, x_58);
lean_ctor_set(x_59, 1, x_45);
x_60 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_60, 0, x_57);
lean_ctor_set(x_60, 1, x_59);
lean_inc(x_25);
x_61 = lean_alloc_ctor(3, 4, 0);
lean_ctor_set(x_61, 0, x_25);
lean_ctor_set(x_61, 1, x_53);
lean_ctor_set(x_61, 2, x_55);
lean_ctor_set(x_61, 3, x_60);
x_62 = l_Lean_Elab_Command_elabMacroRulesAux___closed__10;
lean_inc(x_25);
x_63 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_63, 0, x_25);
lean_ctor_set(x_63, 1, x_62);
x_64 = l_Lean_Elab_Command_elabMacroRulesAux___closed__11;
lean_inc_ref(x_19);
x_65 = l_Lean_Name_mkStr4(x_19, x_29, x_30, x_64);
lean_inc(x_25);
x_66 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_66, 0, x_25);
lean_ctor_set(x_66, 1, x_64);
x_67 = l_Lean_Elab_Command_elabMacroRulesAux___closed__12;
lean_inc_ref(x_19);
x_68 = l_Lean_Name_mkStr4(x_19, x_29, x_30, x_67);
x_69 = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabMacroRulesAux_spec__9___redArg___closed__7;
lean_inc_ref(x_19);
x_70 = l_Lean_Name_mkStr4(x_19, x_29, x_30, x_69);
x_71 = l_Array_append___redArg(x_24, x_13);
lean_dec(x_13);
x_72 = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabMacroRulesAux_spec__9___redArg___closed__9;
lean_inc(x_25);
x_73 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_73, 0, x_25);
lean_ctor_set(x_73, 1, x_72);
x_74 = l_Lean_Elab_Command_elabMacroRulesAux___closed__13;
lean_inc_ref(x_19);
x_75 = l_Lean_Name_mkStr4(x_19, x_29, x_30, x_74);
x_76 = l_Lean_Elab_Command_elabMacroRulesAux___closed__14;
lean_inc(x_25);
x_77 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_77, 0, x_25);
lean_ctor_set(x_77, 1, x_76);
lean_inc(x_25);
x_78 = l_Lean_Syntax_node1(x_25, x_75, x_77);
lean_inc(x_21);
lean_inc(x_25);
x_79 = l_Lean_Syntax_node1(x_25, x_21, x_78);
lean_inc(x_21);
lean_inc(x_25);
x_80 = l_Lean_Syntax_node1(x_25, x_21, x_79);
x_81 = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabMacroRulesAux_spec__9___redArg___closed__13;
lean_inc(x_25);
x_82 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_82, 0, x_25);
lean_ctor_set(x_82, 1, x_81);
x_83 = l_Lean_Elab_Command_elabMacroRulesAux___closed__15;
lean_inc_ref(x_19);
x_84 = l_Lean_Name_mkStr4(x_19, x_29, x_30, x_83);
x_85 = l_Lean_Elab_Command_elabMacroRulesAux___closed__16;
lean_inc(x_25);
x_86 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_86, 0, x_25);
lean_ctor_set(x_86, 1, x_85);
x_87 = l_Lean_Elab_Command_elabMacroRulesAux___closed__17;
lean_inc_ref(x_19);
x_88 = l_Lean_Name_mkStr4(x_19, x_29, x_30, x_87);
x_89 = l_Lean_Elab_Command_elabMacroRulesAux___closed__19;
x_90 = l_Lean_Elab_Command_elabMacroRulesAux___closed__20;
lean_inc(x_22);
lean_inc(x_23);
x_91 = l_Lean_addMacroScope(x_23, x_90, x_22);
x_92 = l_Lean_Elab_Command_elabMacroRulesAux___closed__24;
lean_inc(x_25);
x_93 = lean_alloc_ctor(3, 4, 0);
lean_ctor_set(x_93, 0, x_25);
lean_ctor_set(x_93, 1, x_89);
lean_ctor_set(x_93, 2, x_91);
lean_ctor_set(x_93, 3, x_92);
x_94 = l_Lean_Elab_Command_elabMacroRulesAux___closed__26;
x_95 = l_Lean_Elab_Command_elabMacroRulesAux___closed__27;
x_96 = l_Lean_Elab_Command_elabMacroRulesAux___closed__28;
x_97 = l_Lean_Name_mkStr4(x_19, x_52, x_95, x_96);
lean_inc(x_97);
x_98 = l_Lean_addMacroScope(x_23, x_97, x_22);
lean_inc(x_97);
x_99 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_99, 0, x_97);
lean_ctor_set(x_99, 1, x_45);
x_100 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_100, 0, x_97);
x_101 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_101, 0, x_100);
lean_ctor_set(x_101, 1, x_45);
x_102 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_102, 0, x_99);
lean_ctor_set(x_102, 1, x_101);
lean_inc(x_25);
x_103 = lean_alloc_ctor(3, 4, 0);
lean_ctor_set(x_103, 0, x_25);
lean_ctor_set(x_103, 1, x_94);
lean_ctor_set(x_103, 2, x_98);
lean_ctor_set(x_103, 3, x_102);
lean_inc(x_21);
lean_inc(x_25);
x_104 = l_Lean_Syntax_node1(x_25, x_21, x_103);
lean_inc(x_25);
x_105 = l_Lean_Syntax_node2(x_25, x_88, x_93, x_104);
lean_inc(x_25);
x_106 = l_Lean_Syntax_node2(x_25, x_84, x_86, x_105);
lean_inc(x_25);
x_107 = l_Lean_Syntax_node4(x_25, x_70, x_73, x_80, x_82, x_106);
x_108 = lean_array_push(x_71, x_107);
lean_inc(x_25);
x_109 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_109, 0, x_25);
lean_ctor_set(x_109, 1, x_21);
lean_ctor_set(x_109, 2, x_108);
lean_inc(x_25);
x_110 = l_Lean_Syntax_node1(x_25, x_68, x_109);
lean_inc(x_25);
x_111 = l_Lean_Syntax_node2(x_25, x_65, x_66, x_110);
x_112 = l_Lean_Elab_Command_elabMacroRulesAux___closed__29;
x_113 = lean_array_push(x_112, x_28);
x_114 = lean_array_push(x_113, x_40);
x_115 = lean_array_push(x_114, x_18);
x_116 = lean_array_push(x_115, x_41);
x_117 = lean_array_push(x_116, x_49);
x_118 = lean_array_push(x_117, x_51);
x_119 = lean_array_push(x_118, x_61);
x_120 = lean_array_push(x_119, x_63);
x_121 = lean_array_push(x_120, x_111);
x_122 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_122, 0, x_25);
lean_ctor_set(x_122, 1, x_15);
lean_ctor_set(x_122, 2, x_121);
if (lean_is_scalar(x_14)) {
 x_123 = lean_alloc_ctor(0, 1, 0);
} else {
 x_123 = x_14;
}
lean_ctor_set(x_123, 0, x_122);
return x_123;
}
block_139:
{
lean_object* x_131; lean_object* x_132; lean_object* x_133; lean_object* x_134; lean_object* x_135; 
x_131 = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabMacroRulesAux_spec__9___redArg___closed__4;
x_132 = l_Lean_Elab_Command_elabMacroRulesAux___closed__32;
x_133 = l_Lean_Elab_Command_elabMacroRulesAux___closed__33;
x_134 = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabMacroRulesAux_spec__9___redArg___closed__11;
x_135 = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabMacroRulesAux_spec__9___redArg___closed__12;
if (lean_obj_tag(x_1) == 1)
{
lean_object* x_136; lean_object* x_137; 
x_136 = lean_ctor_get(x_1, 0);
lean_inc(x_136);
lean_dec_ref(x_1);
x_137 = l_Array_mkArray1___redArg(x_136);
x_15 = x_133;
x_16 = x_125;
x_17 = lean_box(0);
x_18 = x_126;
x_19 = x_131;
x_20 = x_132;
x_21 = x_134;
x_22 = x_127;
x_23 = x_129;
x_24 = x_135;
x_25 = x_128;
x_26 = x_137;
goto block_124;
}
else
{
lean_object* x_138; 
lean_dec(x_1);
x_138 = l_Lean_Elab_Command_elabMacroRulesAux___closed__34;
x_15 = x_133;
x_16 = x_125;
x_17 = lean_box(0);
x_18 = x_126;
x_19 = x_131;
x_20 = x_132;
x_21 = x_134;
x_22 = x_127;
x_23 = x_129;
x_24 = x_135;
x_25 = x_128;
x_26 = x_138;
goto block_124;
}
}
}
else
{
uint8_t x_183; 
lean_dec_ref(x_7);
lean_dec(x_5);
lean_dec(x_3);
lean_dec(x_1);
x_183 = !lean_is_exclusive(x_12);
if (x_183 == 0)
{
return x_12;
}
else
{
lean_object* x_184; lean_object* x_185; 
x_184 = lean_ctor_get(x_12, 0);
lean_inc(x_184);
lean_dec(x_12);
x_185 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_185, 0, x_184);
return x_185;
}
}
}
}
LEAN_EXPORT lean_object* l_Lean_Elab_addMacroStack___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00Lean_Elab_Command_elabMacroRulesAux_spec__1_spec__1_spec__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) {
_start:
{
lean_object* x_6; 
x_6 = l_Lean_Elab_addMacroStack___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00Lean_Elab_Command_elabMacroRulesAux_spec__1_spec__1_spec__2(x_1, x_2, x_3, x_4);
lean_dec(x_4);
lean_dec_ref(x_3);
return x_6;
}
}
LEAN_EXPORT lean_object* l_Lean_Elab_throwUnsupportedSyntax___at___00Lean_Elab_Command_elabMacroRulesAux_spec__0___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
lean_object* x_5; 
x_5 = l_Lean_Elab_throwUnsupportedSyntax___at___00Lean_Elab_Command_elabMacroRulesAux_spec__0(x_1, x_2, x_3);
lean_dec(x_3);
lean_dec_ref(x_2);
return x_5;
}
}
LEAN_EXPORT lean_object* l_Lean_addMessageContextPartial___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00Lean_Elab_Command_elabMacroRulesAux_spec__1_spec__1_spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
lean_object* x_5; 
x_5 = l_Lean_addMessageContextPartial___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00Lean_Elab_Command_elabMacroRulesAux_spec__1_spec__1_spec__1(x_1, x_2, x_3);
lean_dec(x_3);
lean_dec_ref(x_2);
return x_5;
}
}
LEAN_EXPORT lean_object* l_Lean_getMainModule___at___00Lean_Elab_Command_elabMacroRulesAux_spec__8___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_4; 
x_4 = l_Lean_getMainModule___at___00Lean_Elab_Command_elabMacroRulesAux_spec__8(x_1, x_2);
lean_dec(x_2);
lean_dec_ref(x_1);
return x_4;
}
}
LEAN_EXPORT lean_object* l_Lean_throwError___at___00Lean_throwErrorAt___at___00Lean_Elab_Command_elabMacroRulesAux_spec__1_spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) {
_start:
{
lean_object* x_6; 
x_6 = l_Lean_throwError___at___00Lean_throwErrorAt___at___00Lean_Elab_Command_elabMacroRulesAux_spec__1_spec__1(x_1, x_2, x_3, x_4);
lean_dec(x_4);
return x_6;
}
}
LEAN_EXPORT lean_object* l_Lean_throwErrorAt___at___00Lean_Elab_Command_elabMacroRulesAux_spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) {
_start:
{
lean_object* x_7; 
x_7 = l_Lean_throwErrorAt___at___00Lean_Elab_Command_elabMacroRulesAux_spec__1(x_1, x_2, x_3, x_4, x_5);
lean_dec(x_5);
lean_dec(x_2);
return x_7;
}
}
LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabMacroRulesAux_spec__9___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) {
_start:
{
size_t x_9; size_t x_10; lean_object* x_11; 
x_9 = lean_unbox_usize(x_3);
lean_dec(x_3);
x_10 = lean_unbox_usize(x_4);
lean_dec(x_4);
x_11 = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabMacroRulesAux_spec__9(x_1, x_2, x_9, x_10, x_5, x_6, x_7);
lean_dec(x_7);
lean_dec_ref(x_1);
return x_11;
}
}
LEAN_EXPORT lean_object* l_Lean_Elab_throwUnsupportedSyntax___at___00Lean_Elab_Command_elabMacroRulesAux_spec__0___redArg___boxed(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = l_Lean_Elab_throwUnsupportedSyntax___at___00Lean_Elab_Command_elabMacroRulesAux_spec__0___redArg();
return x_2;
}
}
LEAN_EXPORT lean_object* l_Lean_Option_get___at___00Lean_Elab_addMacroStack___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00Lean_Elab_Command_elabMacroRulesAux_spec__1_spec__1_spec__2_spec__2___boxed(lean_object* x_1, lean_object* x_2) {
_start:
{
uint8_t x_3; lean_object* x_4; 
x_3 = l_Lean_Option_get___at___00Lean_Elab_addMacroStack___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00Lean_Elab_Command_elabMacroRulesAux_spec__1_spec__1_spec__2_spec__2(x_1, x_2);
lean_dec_ref(x_2);
lean_dec(x_1);
x_4 = lean_box(x_3);
return x_4;
}
}
LEAN_EXPORT lean_object* l_Lean_getMainModule___at___00Lean_Elab_Command_elabMacroRulesAux_spec__8___redArg___boxed(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = l_Lean_getMainModule___at___00Lean_Elab_Command_elabMacroRulesAux_spec__8___redArg(x_1);
lean_dec(x_1);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Lean_throwErrorAt___at___00Lean_Elab_Command_elabMacroRulesAux_spec__1___redArg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) {
_start:
{
lean_object* x_6; 
x_6 = l_Lean_throwErrorAt___at___00Lean_Elab_Command_elabMacroRulesAux_spec__1___redArg(x_1, x_2, x_3, x_4);
lean_dec(x_4);
lean_dec(x_1);
return x_6;
}
}
LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Lean_Elab_Command_elabMacroRulesAux_spec__7___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) {
_start:
{
size_t x_8; size_t x_9; lean_object* x_10; 
x_8 = lean_unbox_usize(x_5);
lean_dec(x_5);
x_9 = lean_unbox_usize(x_6);
lean_dec(x_6);
x_10 = l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00Lean_Elab_Command_elabMacroRulesAux_spec__7(x_1, x_2, x_3, x_4, x_8, x_9, x_7);
lean_dec_ref(x_7);
lean_dec_ref(x_4);
lean_dec_ref(x_2);
return x_10;
}
}
LEAN_EXPORT lean_object* l_Lean_throwError___at___00Lean_throwErrorAt___at___00Lean_Elab_Command_elabMacroRulesAux_spec__1_spec__1___redArg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
lean_object* x_5; 
x_5 = l_Lean_throwError___at___00Lean_throwErrorAt___at___00Lean_Elab_Command_elabMacroRulesAux_spec__1_spec__1___redArg(x_1, x_2, x_3);
lean_dec(x_3);
return x_5;
}
}
LEAN_EXPORT lean_object* l_Lean_Elab_addMacroStack___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00Lean_Elab_Command_elabMacroRulesAux_spec__1_spec__1_spec__2___redArg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
lean_object* x_5; 
x_5 = l_Lean_Elab_addMacroStack___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00Lean_Elab_Command_elabMacroRulesAux_spec__1_spec__1_spec__2___redArg(x_1, x_2, x_3);
lean_dec(x_3);
return x_5;
}
}
LEAN_EXPORT lean_object* l_Lean_addMessageContextPartial___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00Lean_Elab_Command_elabMacroRulesAux_spec__1_spec__1_spec__1___redArg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_4; 
x_4 = l_Lean_addMessageContextPartial___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00Lean_Elab_Command_elabMacroRulesAux_spec__1_spec__1_spec__1___redArg(x_1, x_2);
lean_dec(x_2);
return x_4;
}
}
LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabMacroRulesAux_spec__9___redArg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) {
_start:
{
size_t x_8; size_t x_9; lean_object* x_10; 
x_8 = lean_unbox_usize(x_2);
lean_dec(x_2);
x_9 = lean_unbox_usize(x_3);
lean_dec(x_3);
x_10 = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabMacroRulesAux_spec__9___redArg(x_1, x_8, x_9, x_4, x_5, x_6);
lean_dec(x_6);
return x_10;
}
}
LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00__private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabMacroRulesAux_spec__9_spec__9___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) {
_start:
{
size_t x_8; size_t x_9; lean_object* x_10; 
x_8 = lean_unbox_usize(x_2);
lean_dec(x_2);
x_9 = lean_unbox_usize(x_3);
lean_dec(x_3);
x_10 = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00__private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabMacroRulesAux_spec__9_spec__9(x_1, x_8, x_9, x_4, x_5, x_6);
lean_dec(x_6);
return x_10;
}
}
LEAN_EXPORT lean_object* l_Lean_Elab_Command_elabMacroRulesAux___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) {
_start:
{
lean_object* x_10; 
x_10 = l_Lean_Elab_Command_elabMacroRulesAux(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8);
lean_dec(x_8);
lean_dec(x_4);
lean_dec(x_2);
return x_10;
}
}
LEAN_EXPORT lean_object* l_Lean_withExporting___at___00Lean_Elab_Command_elabMacroRules_spec__0___redArg___lam__0(lean_object* x_1, uint8_t x_2, lean_object* x_3) {
_start:
{
lean_object* x_5; uint8_t x_6; 
x_5 = lean_st_ref_take(x_1);
x_6 = !lean_is_exclusive(x_5);
if (x_6 == 0)
{
lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; 
x_7 = lean_ctor_get(x_5, 0);
x_8 = l_Lean_Environment_setExporting(x_7, x_2);
lean_ctor_set(x_5, 0, x_8);
x_9 = lean_st_ref_set(x_1, x_5);
x_10 = lean_box(0);
x_11 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_11, 0, x_10);
return x_11;
}
else
{
lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; 
x_12 = lean_ctor_get(x_5, 0);
x_13 = lean_ctor_get(x_5, 1);
x_14 = lean_ctor_get(x_5, 2);
x_15 = lean_ctor_get(x_5, 3);
x_16 = lean_ctor_get(x_5, 4);
x_17 = lean_ctor_get(x_5, 5);
x_18 = lean_ctor_get(x_5, 6);
x_19 = lean_ctor_get(x_5, 7);
x_20 = lean_ctor_get(x_5, 8);
x_21 = lean_ctor_get(x_5, 9);
x_22 = lean_ctor_get(x_5, 10);
lean_inc(x_22);
lean_inc(x_21);
lean_inc(x_20);
lean_inc(x_19);
lean_inc(x_18);
lean_inc(x_17);
lean_inc(x_16);
lean_inc(x_15);
lean_inc(x_14);
lean_inc(x_13);
lean_inc(x_12);
lean_dec(x_5);
x_23 = l_Lean_Environment_setExporting(x_12, x_2);
x_24 = lean_alloc_ctor(0, 11, 0);
lean_ctor_set(x_24, 0, x_23);
lean_ctor_set(x_24, 1, x_13);
lean_ctor_set(x_24, 2, x_14);
lean_ctor_set(x_24, 3, x_15);
lean_ctor_set(x_24, 4, x_16);
lean_ctor_set(x_24, 5, x_17);
lean_ctor_set(x_24, 6, x_18);
lean_ctor_set(x_24, 7, x_19);
lean_ctor_set(x_24, 8, x_20);
lean_ctor_set(x_24, 9, x_21);
lean_ctor_set(x_24, 10, x_22);
x_25 = lean_st_ref_set(x_1, x_24);
x_26 = lean_box(0);
x_27 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_27, 0, x_26);
return x_27;
}
}
}
LEAN_EXPORT lean_object* l_Lean_withExporting___at___00Lean_Elab_Command_elabMacroRules_spec__0___redArg(lean_object* x_1, uint8_t x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
lean_object* x_6; lean_object* x_7; uint8_t x_8; lean_object* x_9; uint8_t x_10; 
x_6 = lean_st_ref_get(x_4);
x_7 = lean_ctor_get(x_6, 0);
lean_inc_ref(x_7);
lean_dec(x_6);
x_8 = lean_ctor_get_uint8(x_7, sizeof(void*)*8);
lean_dec_ref(x_7);
x_9 = lean_st_ref_take(x_4);
x_10 = !lean_is_exclusive(x_9);
if (x_10 == 0)
{
lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; 
x_11 = lean_ctor_get(x_9, 0);
x_12 = l_Lean_Environment_setExporting(x_11, x_2);
lean_ctor_set(x_9, 0, x_12);
x_13 = lean_st_ref_set(x_4, x_9);
lean_inc(x_4);
x_14 = lean_apply_3(x_1, x_3, x_4, lean_box(0));
if (lean_obj_tag(x_14) == 0)
{
uint8_t x_15; 
x_15 = !lean_is_exclusive(x_14);
if (x_15 == 0)
{
lean_object* x_16; lean_object* x_17; uint8_t x_18; 
x_16 = lean_ctor_get(x_14, 0);
lean_inc(x_16);
lean_ctor_set_tag(x_14, 1);
x_17 = l_Lean_withExporting___at___00Lean_Elab_Command_elabMacroRules_spec__0___redArg___lam__0(x_4, x_8, x_14);
lean_dec_ref(x_14);
lean_dec(x_4);
x_18 = !lean_is_exclusive(x_17);
if (x_18 == 0)
{
lean_object* x_19; 
x_19 = lean_ctor_get(x_17, 0);
lean_dec(x_19);
lean_ctor_set(x_17, 0, x_16);
return x_17;
}
else
{
lean_object* x_20; 
lean_dec(x_17);
x_20 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_20, 0, x_16);
return x_20;
}
}
else
{
lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; 
x_21 = lean_ctor_get(x_14, 0);
lean_inc(x_21);
lean_dec(x_14);
lean_inc(x_21);
x_22 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_22, 0, x_21);
x_23 = l_Lean_withExporting___at___00Lean_Elab_Command_elabMacroRules_spec__0___redArg___lam__0(x_4, x_8, x_22);
lean_dec_ref(x_22);
lean_dec(x_4);
if (lean_is_exclusive(x_23)) {
 lean_ctor_release(x_23, 0);
 x_24 = x_23;
} else {
 lean_dec_ref(x_23);
 x_24 = lean_box(0);
}
if (lean_is_scalar(x_24)) {
 x_25 = lean_alloc_ctor(0, 1, 0);
} else {
 x_25 = x_24;
}
lean_ctor_set(x_25, 0, x_21);
return x_25;
}
}
else
{
lean_object* x_26; lean_object* x_27; lean_object* x_28; uint8_t x_29; 
x_26 = lean_ctor_get(x_14, 0);
lean_inc(x_26);
lean_dec_ref(x_14);
x_27 = lean_box(0);
x_28 = l_Lean_withExporting___at___00Lean_Elab_Command_elabMacroRules_spec__0___redArg___lam__0(x_4, x_8, x_27);
lean_dec(x_4);
x_29 = !lean_is_exclusive(x_28);
if (x_29 == 0)
{
lean_object* x_30; 
x_30 = lean_ctor_get(x_28, 0);
lean_dec(x_30);
lean_ctor_set_tag(x_28, 1);
lean_ctor_set(x_28, 0, x_26);
return x_28;
}
else
{
lean_object* x_31; 
lean_dec(x_28);
x_31 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_31, 0, x_26);
return x_31;
}
}
}
else
{
lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; 
x_32 = lean_ctor_get(x_9, 0);
x_33 = lean_ctor_get(x_9, 1);
x_34 = lean_ctor_get(x_9, 2);
x_35 = lean_ctor_get(x_9, 3);
x_36 = lean_ctor_get(x_9, 4);
x_37 = lean_ctor_get(x_9, 5);
x_38 = lean_ctor_get(x_9, 6);
x_39 = lean_ctor_get(x_9, 7);
x_40 = lean_ctor_get(x_9, 8);
x_41 = lean_ctor_get(x_9, 9);
x_42 = lean_ctor_get(x_9, 10);
lean_inc(x_42);
lean_inc(x_41);
lean_inc(x_40);
lean_inc(x_39);
lean_inc(x_38);
lean_inc(x_37);
lean_inc(x_36);
lean_inc(x_35);
lean_inc(x_34);
lean_inc(x_33);
lean_inc(x_32);
lean_dec(x_9);
x_43 = l_Lean_Environment_setExporting(x_32, x_2);
x_44 = lean_alloc_ctor(0, 11, 0);
lean_ctor_set(x_44, 0, x_43);
lean_ctor_set(x_44, 1, x_33);
lean_ctor_set(x_44, 2, x_34);
lean_ctor_set(x_44, 3, x_35);
lean_ctor_set(x_44, 4, x_36);
lean_ctor_set(x_44, 5, x_37);
lean_ctor_set(x_44, 6, x_38);
lean_ctor_set(x_44, 7, x_39);
lean_ctor_set(x_44, 8, x_40);
lean_ctor_set(x_44, 9, x_41);
lean_ctor_set(x_44, 10, x_42);
x_45 = lean_st_ref_set(x_4, x_44);
lean_inc(x_4);
x_46 = lean_apply_3(x_1, x_3, x_4, lean_box(0));
if (lean_obj_tag(x_46) == 0)
{
lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; 
x_47 = lean_ctor_get(x_46, 0);
lean_inc(x_47);
if (lean_is_exclusive(x_46)) {
 lean_ctor_release(x_46, 0);
 x_48 = x_46;
} else {
 lean_dec_ref(x_46);
 x_48 = lean_box(0);
}
lean_inc(x_47);
if (lean_is_scalar(x_48)) {
 x_49 = lean_alloc_ctor(1, 1, 0);
} else {
 x_49 = x_48;
 lean_ctor_set_tag(x_49, 1);
}
lean_ctor_set(x_49, 0, x_47);
x_50 = l_Lean_withExporting___at___00Lean_Elab_Command_elabMacroRules_spec__0___redArg___lam__0(x_4, x_8, x_49);
lean_dec_ref(x_49);
lean_dec(x_4);
if (lean_is_exclusive(x_50)) {
 lean_ctor_release(x_50, 0);
 x_51 = x_50;
} else {
 lean_dec_ref(x_50);
 x_51 = lean_box(0);
}
if (lean_is_scalar(x_51)) {
 x_52 = lean_alloc_ctor(0, 1, 0);
} else {
 x_52 = x_51;
}
lean_ctor_set(x_52, 0, x_47);
return x_52;
}
else
{
lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; 
x_53 = lean_ctor_get(x_46, 0);
lean_inc(x_53);
lean_dec_ref(x_46);
x_54 = lean_box(0);
x_55 = l_Lean_withExporting___at___00Lean_Elab_Command_elabMacroRules_spec__0___redArg___lam__0(x_4, x_8, x_54);
lean_dec(x_4);
if (lean_is_exclusive(x_55)) {
 lean_ctor_release(x_55, 0);
 x_56 = x_55;
} else {
 lean_dec_ref(x_55);
 x_56 = lean_box(0);
}
if (lean_is_scalar(x_56)) {
 x_57 = lean_alloc_ctor(1, 1, 0);
} else {
 x_57 = x_56;
 lean_ctor_set_tag(x_57, 1);
}
lean_ctor_set(x_57, 0, x_53);
return x_57;
}
}
}
}
LEAN_EXPORT lean_object* l_Lean_withExporting___at___00Lean_Elab_Command_elabMacroRules_spec__0(lean_object* x_1, lean_object* x_2, uint8_t x_3, lean_object* x_4, lean_object* x_5) {
_start:
{
lean_object* x_7; 
x_7 = l_Lean_withExporting___at___00Lean_Elab_Command_elabMacroRules_spec__0___redArg(x_2, x_3, x_4, x_5);
return x_7;
}
}
LEAN_EXPORT lean_object* l_Lean_Elab_Command_elabMacroRules___lam__0(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) {
_start:
{
lean_object* x_11; 
x_11 = l_Lean_Elab_Command_getRef___redArg(x_8);
if (lean_obj_tag(x_11) == 0)
{
lean_object* x_12; uint8_t x_13; 
x_12 = lean_ctor_get(x_11, 0);
lean_inc(x_12);
lean_dec_ref(x_11);
x_13 = !lean_is_exclusive(x_8);
if (x_13 == 0)
{
lean_object* x_14; lean_object* x_15; lean_object* x_16; 
x_14 = lean_ctor_get(x_8, 7);
lean_dec(x_14);
x_15 = l_Lean_replaceRef(x_1, x_12);
lean_dec(x_12);
lean_ctor_set(x_8, 7, x_15);
lean_inc_ref(x_8);
x_16 = l_Lean_Elab_Command_resolveSyntaxKind(x_2, x_8, x_9);
if (lean_obj_tag(x_16) == 0)
{
lean_object* x_17; lean_object* x_18; 
x_17 = lean_ctor_get(x_16, 0);
lean_inc(x_17);
lean_dec_ref(x_16);
x_18 = l_Lean_Elab_Command_elabMacroRulesAux(x_3, x_4, x_5, x_6, x_17, x_7, x_8, x_9);
return x_18;
}
else
{
uint8_t x_19; 
lean_dec_ref(x_8);
lean_dec_ref(x_7);
lean_dec(x_5);
lean_dec(x_3);
x_19 = !lean_is_exclusive(x_16);
if (x_19 == 0)
{
return x_16;
}
else
{
lean_object* x_20; lean_object* x_21; 
x_20 = lean_ctor_get(x_16, 0);
lean_inc(x_20);
lean_dec(x_16);
x_21 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_21, 0, x_20);
return x_21;
}
}
}
else
{
lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; uint8_t x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; 
x_22 = lean_ctor_get(x_8, 0);
x_23 = lean_ctor_get(x_8, 1);
x_24 = lean_ctor_get(x_8, 2);
x_25 = lean_ctor_get(x_8, 3);
x_26 = lean_ctor_get(x_8, 4);
x_27 = lean_ctor_get(x_8, 5);
x_28 = lean_ctor_get(x_8, 6);
x_29 = lean_ctor_get(x_8, 8);
x_30 = lean_ctor_get(x_8, 9);
x_31 = lean_ctor_get_uint8(x_8, sizeof(void*)*10);
lean_inc(x_30);
lean_inc(x_29);
lean_inc(x_28);
lean_inc(x_27);
lean_inc(x_26);
lean_inc(x_25);
lean_inc(x_24);
lean_inc(x_23);
lean_inc(x_22);
lean_dec(x_8);
x_32 = l_Lean_replaceRef(x_1, x_12);
lean_dec(x_12);
x_33 = lean_alloc_ctor(0, 10, 1);
lean_ctor_set(x_33, 0, x_22);
lean_ctor_set(x_33, 1, x_23);
lean_ctor_set(x_33, 2, x_24);
lean_ctor_set(x_33, 3, x_25);
lean_ctor_set(x_33, 4, x_26);
lean_ctor_set(x_33, 5, x_27);
lean_ctor_set(x_33, 6, x_28);
lean_ctor_set(x_33, 7, x_32);
lean_ctor_set(x_33, 8, x_29);
lean_ctor_set(x_33, 9, x_30);
lean_ctor_set_uint8(x_33, sizeof(void*)*10, x_31);
lean_inc_ref(x_33);
x_34 = l_Lean_Elab_Command_resolveSyntaxKind(x_2, x_33, x_9);
if (lean_obj_tag(x_34) == 0)
{
lean_object* x_35; lean_object* x_36; 
x_35 = lean_ctor_get(x_34, 0);
lean_inc(x_35);
lean_dec_ref(x_34);
x_36 = l_Lean_Elab_Command_elabMacroRulesAux(x_3, x_4, x_5, x_6, x_35, x_7, x_33, x_9);
return x_36;
}
else
{
lean_object* x_37; lean_object* x_38; lean_object* x_39; 
lean_dec_ref(x_33);
lean_dec_ref(x_7);
lean_dec(x_5);
lean_dec(x_3);
x_37 = lean_ctor_get(x_34, 0);
lean_inc(x_37);
if (lean_is_exclusive(x_34)) {
 lean_ctor_release(x_34, 0);
 x_38 = x_34;
} else {
 lean_dec_ref(x_34);
 x_38 = lean_box(0);
}
if (lean_is_scalar(x_38)) {
 x_39 = lean_alloc_ctor(1, 1, 0);
} else {
 x_39 = x_38;
}
lean_ctor_set(x_39, 0, x_37);
return x_39;
}
}
}
else
{
lean_dec_ref(x_8);
lean_dec_ref(x_7);
lean_dec(x_5);
lean_dec(x_3);
lean_dec(x_2);
return x_11;
}
}
}
static lean_object* _init_l_Lean_Elab_Command_elabMacroRules___lam__5___closed__0() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("(", 1, 1);
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabMacroRules___lam__5___closed__1() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("kind", 4, 4);
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabMacroRules___lam__5___closed__2() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked(")", 1, 1);
return x_1;
}
}
LEAN_EXPORT lean_object* l_Lean_Elab_Command_elabMacroRules___lam__5(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13) {
_start:
{
lean_object* x_15; 
x_15 = l_Lean_Elab_Command_getRef___redArg(x_12);
if (lean_obj_tag(x_15) == 0)
{
lean_object* x_16; lean_object* x_17; 
x_16 = lean_ctor_get(x_15, 0);
lean_inc(x_16);
lean_dec_ref(x_15);
x_17 = l_Lean_Elab_Command_getCurrMacroScope___redArg(x_12);
if (lean_obj_tag(x_17) == 0)
{
lean_object* x_18; lean_object* x_19; uint8_t x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_77; 
if (lean_is_exclusive(x_17)) {
 lean_ctor_release(x_17, 0);
 x_18 = x_17;
} else {
 lean_dec_ref(x_17);
 x_18 = lean_box(0);
}
x_19 = lean_ctor_get(x_12, 5);
x_20 = 0;
x_21 = l_Lean_SourceInfo_fromRef(x_16, x_20);
lean_dec(x_16);
if (lean_obj_tag(x_19) == 0)
{
lean_object* x_84; 
x_84 = l_Lean_getMainModule___at___00Lean_Elab_Command_elabMacroRulesAux_spec__8___redArg(x_13);
lean_dec_ref(x_84);
x_77 = lean_box(0);
goto block_83;
}
else
{
x_77 = lean_box(0);
goto block_83;
}
block_36:
{
lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; 
lean_inc_ref(x_24);
x_29 = l_Array_append___redArg(x_24, x_28);
lean_dec_ref(x_28);
lean_inc(x_22);
lean_inc(x_21);
x_30 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_30, 0, x_21);
lean_ctor_set(x_30, 1, x_22);
lean_ctor_set(x_30, 2, x_29);
x_31 = l_Array_append___redArg(x_24, x_11);
lean_inc(x_21);
x_32 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_32, 0, x_21);
lean_ctor_set(x_32, 1, x_22);
lean_ctor_set(x_32, 2, x_31);
lean_inc(x_21);
x_33 = l_Lean_Syntax_node1(x_21, x_1, x_32);
x_34 = l_Lean_Syntax_node6(x_21, x_2, x_25, x_27, x_3, x_26, x_30, x_33);
if (lean_is_scalar(x_18)) {
 x_35 = lean_alloc_ctor(0, 1, 0);
} else {
 x_35 = x_18;
}
lean_ctor_set(x_35, 0, x_34);
return x_35;
}
block_57:
{
lean_object* x_42; lean_object* x_43; lean_object* x_44; 
lean_inc_ref(x_39);
x_42 = l_Array_append___redArg(x_39, x_41);
lean_dec_ref(x_41);
lean_inc(x_37);
lean_inc(x_21);
x_43 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_43, 0, x_21);
lean_ctor_set(x_43, 1, x_37);
lean_ctor_set(x_43, 2, x_42);
lean_inc(x_21);
x_44 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_44, 0, x_21);
lean_ctor_set(x_44, 1, x_4);
if (lean_obj_tag(x_10) == 0)
{
lean_object* x_45; 
x_45 = l_Lean_Elab_Command_elabMacroRulesAux___closed__34;
x_22 = x_37;
x_23 = lean_box(0);
x_24 = x_39;
x_25 = x_40;
x_26 = x_44;
x_27 = x_43;
x_28 = x_45;
goto block_36;
}
else
{
lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; 
x_46 = lean_ctor_get(x_10, 0);
lean_inc(x_46);
lean_dec_ref(x_10);
x_47 = lean_mk_syntax_ident(x_46);
x_48 = l_Lean_Elab_Command_elabMacroRules___lam__5___closed__0;
lean_inc(x_21);
x_49 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_49, 0, x_21);
lean_ctor_set(x_49, 1, x_48);
x_50 = l_Lean_Elab_Command_elabMacroRules___lam__5___closed__1;
lean_inc(x_21);
x_51 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_51, 0, x_21);
lean_ctor_set(x_51, 1, x_50);
x_52 = l_Lean_Elab_Command_elabMacroRulesAux___closed__10;
lean_inc(x_21);
x_53 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_53, 0, x_21);
lean_ctor_set(x_53, 1, x_52);
x_54 = l_Lean_Elab_Command_elabMacroRules___lam__5___closed__2;
lean_inc(x_21);
x_55 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_55, 0, x_21);
lean_ctor_set(x_55, 1, x_54);
x_56 = l_Array_mkArray5___redArg(x_49, x_51, x_53, x_47, x_55);
x_22 = x_37;
x_23 = lean_box(0);
x_24 = x_39;
x_25 = x_40;
x_26 = x_44;
x_27 = x_43;
x_28 = x_56;
goto block_36;
}
}
block_76:
{
lean_object* x_62; lean_object* x_63; 
lean_inc_ref(x_60);
x_62 = l_Array_append___redArg(x_60, x_61);
lean_dec_ref(x_61);
lean_inc(x_58);
lean_inc(x_21);
x_63 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_63, 0, x_21);
lean_ctor_set(x_63, 1, x_58);
lean_ctor_set(x_63, 2, x_62);
if (lean_obj_tag(x_5) == 1)
{
lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; 
x_64 = lean_ctor_get(x_5, 0);
x_65 = l_Lean_Elab_Command_elabMacroRulesAux___closed__0;
x_66 = l_Lean_Name_mkStr4(x_6, x_7, x_8, x_65);
x_67 = l_Lean_Elab_Command_elabMacroRulesAux___closed__1;
lean_inc(x_21);
x_68 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_68, 0, x_21);
lean_ctor_set(x_68, 1, x_67);
lean_inc_ref(x_60);
x_69 = l_Array_append___redArg(x_60, x_64);
lean_inc(x_58);
lean_inc(x_21);
x_70 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_70, 0, x_21);
lean_ctor_set(x_70, 1, x_58);
lean_ctor_set(x_70, 2, x_69);
x_71 = l_Lean_Elab_Command_elabMacroRulesAux___closed__2;
lean_inc(x_21);
x_72 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_72, 0, x_21);
lean_ctor_set(x_72, 1, x_71);
lean_inc(x_21);
x_73 = l_Lean_Syntax_node3(x_21, x_66, x_68, x_70, x_72);
x_74 = l_Array_mkArray1___redArg(x_73);
x_37 = x_58;
x_38 = lean_box(0);
x_39 = x_60;
x_40 = x_63;
x_41 = x_74;
goto block_57;
}
else
{
lean_object* x_75; 
lean_dec_ref(x_8);
lean_dec_ref(x_7);
lean_dec_ref(x_6);
x_75 = l_Lean_Elab_Command_elabMacroRulesAux___closed__34;
x_37 = x_58;
x_38 = lean_box(0);
x_39 = x_60;
x_40 = x_63;
x_41 = x_75;
goto block_57;
}
}
block_83:
{
lean_object* x_78; lean_object* x_79; 
x_78 = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabMacroRulesAux_spec__9___redArg___closed__11;
x_79 = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabMacroRulesAux_spec__9___redArg___closed__12;
if (lean_obj_tag(x_9) == 1)
{
lean_object* x_80; lean_object* x_81; 
x_80 = lean_ctor_get(x_9, 0);
lean_inc(x_80);
lean_dec_ref(x_9);
x_81 = l_Array_mkArray1___redArg(x_80);
x_58 = x_78;
x_59 = lean_box(0);
x_60 = x_79;
x_61 = x_81;
goto block_76;
}
else
{
lean_object* x_82; 
lean_dec(x_9);
x_82 = l_Lean_Elab_Command_elabMacroRulesAux___closed__34;
x_58 = x_78;
x_59 = lean_box(0);
x_60 = x_79;
x_61 = x_82;
goto block_76;
}
}
}
else
{
uint8_t x_85; 
lean_dec(x_16);
lean_dec(x_10);
lean_dec(x_9);
lean_dec_ref(x_8);
lean_dec_ref(x_7);
lean_dec_ref(x_6);
lean_dec_ref(x_4);
lean_dec(x_3);
lean_dec(x_2);
lean_dec(x_1);
x_85 = !lean_is_exclusive(x_17);
if (x_85 == 0)
{
return x_17;
}
else
{
lean_object* x_86; lean_object* x_87; 
x_86 = lean_ctor_get(x_17, 0);
lean_inc(x_86);
lean_dec(x_17);
x_87 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_87, 0, x_86);
return x_87;
}
}
}
else
{
uint8_t x_88; 
lean_dec(x_10);
lean_dec(x_9);
lean_dec_ref(x_8);
lean_dec_ref(x_7);
lean_dec_ref(x_6);
lean_dec_ref(x_4);
lean_dec(x_3);
lean_dec(x_2);
lean_dec(x_1);
x_88 = !lean_is_exclusive(x_15);
if (x_88 == 0)
{
return x_15;
}
else
{
lean_object* x_89; lean_object* x_90; 
x_89 = lean_ctor_get(x_15, 0);
lean_inc(x_89);
lean_dec(x_15);
x_90 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_90, 0, x_89);
return x_90;
}
}
}
}
static lean_object* _init_l_Lean_Elab_Command_elabMacroRules___lam__1___closed__0() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("macro_rules", 11, 11);
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabMacroRules___lam__1___closed__1() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; 
x_1 = l_Lean_Elab_Command_elabMacroRules___lam__1___closed__0;
x_2 = l_Lean_Elab_Command_elabMacroRulesAux___closed__31;
x_3 = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabMacroRulesAux_spec__9___redArg___closed__5;
x_4 = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabMacroRulesAux_spec__9___redArg___closed__4;
x_5 = l_Lean_Name_mkStr4(x_4, x_3, x_2, x_1);
return x_5;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabMacroRules___lam__1___closed__2() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Lean_Elab_Command_elabMacroRulesAux___closed__7;
x_2 = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabMacroRulesAux_spec__9___redArg___closed__4;
x_3 = l_Lean_Name_mkStr2(x_2, x_1);
return x_3;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabMacroRules___lam__1___closed__3() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_box(0);
x_2 = l_Lean_Elab_Command_elabMacroRules___lam__1___closed__2;
x_3 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_3, 0, x_2);
lean_ctor_set(x_3, 1, x_1);
return x_3;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabMacroRules___lam__1___closed__4() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_Elab_Command_elabMacroRules___lam__1___closed__2;
x_2 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_2, 0, x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabMacroRules___lam__1___closed__5() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_box(0);
x_2 = l_Lean_Elab_Command_elabMacroRules___lam__1___closed__4;
x_3 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_3, 0, x_2);
lean_ctor_set(x_3, 1, x_1);
return x_3;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabMacroRules___lam__1___closed__6() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Lean_Elab_Command_elabMacroRules___lam__1___closed__5;
x_2 = l_Lean_Elab_Command_elabMacroRules___lam__1___closed__3;
x_3 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_3, 0, x_2);
lean_ctor_set(x_3, 1, x_1);
return x_3;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabMacroRules___lam__1___closed__7() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("basicFun", 8, 8);
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabMacroRules___lam__1___closed__8() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("attrKind", 8, 8);
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabMacroRules___lam__1___closed__9() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; 
x_1 = l_Lean_Elab_Command_elabMacroRules___lam__1___closed__8;
x_2 = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabMacroRulesAux_spec__9___redArg___closed__6;
x_3 = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabMacroRulesAux_spec__9___redArg___closed__5;
x_4 = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabMacroRulesAux_spec__9___redArg___closed__4;
x_5 = l_Lean_Name_mkStr4(x_4, x_3, x_2, x_1);
return x_5;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabMacroRules___lam__1___closed__10() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; 
x_1 = l_Lean_Elab_Command_elabMacroRulesAux___closed__12;
x_2 = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabMacroRulesAux_spec__9___redArg___closed__6;
x_3 = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabMacroRulesAux_spec__9___redArg___closed__5;
x_4 = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabMacroRulesAux_spec__9___redArg___closed__4;
x_5 = l_Lean_Name_mkStr4(x_4, x_3, x_2, x_1);
return x_5;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabMacroRules___lam__1___closed__11() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = lean_unsigned_to_nat(2u);
x_2 = lean_mk_empty_array_with_capacity(x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabMacroRules___lam__1___closed__12() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("local", 5, 5);
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabMacroRules___lam__1___closed__13() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; 
x_1 = l_Lean_Elab_Command_elabMacroRules___lam__1___closed__12;
x_2 = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabMacroRulesAux_spec__9___redArg___closed__6;
x_3 = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabMacroRulesAux_spec__9___redArg___closed__5;
x_4 = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabMacroRulesAux_spec__9___redArg___closed__4;
x_5 = l_Lean_Name_mkStr4(x_4, x_3, x_2, x_1);
return x_5;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabMacroRules___lam__1___closed__14() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("ident", 5, 5);
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabMacroRules___lam__1___closed__15() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_Elab_Command_elabMacroRules___lam__1___closed__14;
x_2 = l_Lean_Name_mkStr1(x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabMacroRules___lam__1___closed__16() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; 
x_1 = l_Lean_Elab_Command_elabMacroRulesAux___closed__0;
x_2 = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabMacroRulesAux_spec__9___redArg___closed__6;
x_3 = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabMacroRulesAux_spec__9___redArg___closed__5;
x_4 = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabMacroRulesAux_spec__9___redArg___closed__4;
x_5 = l_Lean_Name_mkStr4(x_4, x_3, x_2, x_1);
return x_5;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabMacroRules___lam__1___closed__17() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("docComment", 10, 10);
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabMacroRules___lam__1___closed__18() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; 
x_1 = l_Lean_Elab_Command_elabMacroRules___lam__1___closed__17;
x_2 = l_Lean_Elab_Command_elabMacroRulesAux___closed__31;
x_3 = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabMacroRulesAux_spec__9___redArg___closed__5;
x_4 = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabMacroRulesAux_spec__9___redArg___closed__4;
x_5 = l_Lean_Name_mkStr4(x_4, x_3, x_2, x_1);
return x_5;
}
}
LEAN_EXPORT lean_object* l_Lean_Elab_Command_elabMacroRules___lam__0___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) {
_start:
{
lean_object* x_11; 
x_11 = l_Lean_Elab_Command_elabMacroRules___lam__0(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9);
lean_dec(x_9);
lean_dec(x_6);
lean_dec(x_4);
lean_dec(x_1);
return x_11;
}
}
LEAN_EXPORT lean_object* l_Lean_Elab_Command_elabMacroRules___lam__5___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14) {
_start:
{
lean_object* x_15; 
x_15 = l_Lean_Elab_Command_elabMacroRules___lam__5(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13);
lean_dec(x_13);
lean_dec_ref(x_12);
lean_dec_ref(x_11);
lean_dec(x_5);
return x_15;
}
}
LEAN_EXPORT lean_object* l_Lean_Elab_Command_elabMacroRules___lam__1(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_5; lean_object* x_6; uint8_t x_7; lean_object* x_8; uint8_t x_9; lean_object* x_10; uint8_t x_11; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; uint8_t x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_105; lean_object* x_106; lean_object* x_107; lean_object* x_108; lean_object* x_109; lean_object* x_110; lean_object* x_111; lean_object* x_112; lean_object* x_113; uint8_t x_114; lean_object* x_115; lean_object* x_116; lean_object* x_117; lean_object* x_118; lean_object* x_132; lean_object* x_133; lean_object* x_134; lean_object* x_135; lean_object* x_136; lean_object* x_137; lean_object* x_138; lean_object* x_139; lean_object* x_140; lean_object* x_141; uint8_t x_142; lean_object* x_143; lean_object* x_144; lean_object* x_145; lean_object* x_146; lean_object* x_147; 
x_15 = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabMacroRulesAux_spec__9___redArg___closed__4;
x_16 = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabMacroRulesAux_spec__9___redArg___closed__5;
x_17 = l_Lean_Elab_Command_elabMacroRules___lam__1___closed__0;
x_18 = l_Lean_Elab_Command_elabMacroRules___lam__1___closed__1;
lean_inc(x_1);
x_19 = l_Lean_Syntax_isOfKind(x_1, x_18);
if (x_19 == 0)
{
lean_object* x_165; 
lean_dec(x_3);
lean_dec_ref(x_2);
lean_dec(x_1);
x_165 = l_Lean_Elab_throwUnsupportedSyntax___at___00Lean_Elab_Command_elabMacroRulesAux_spec__0___redArg();
return x_165;
}
else
{
lean_object* x_166; lean_object* x_167; lean_object* x_168; lean_object* x_169; lean_object* x_170; lean_object* x_171; lean_object* x_172; lean_object* x_401; lean_object* x_402; lean_object* x_403; lean_object* x_404; lean_object* x_419; uint8_t x_420; 
x_166 = lean_unsigned_to_nat(0u);
x_419 = l_Lean_Syntax_getArg(x_1, x_166);
x_420 = l_Lean_Syntax_isNone(x_419);
if (x_420 == 0)
{
lean_object* x_421; uint8_t x_422; 
x_421 = lean_unsigned_to_nat(1u);
lean_inc(x_419);
x_422 = l_Lean_Syntax_matchesNull(x_419, x_421);
if (x_422 == 0)
{
lean_object* x_423; 
lean_dec(x_419);
lean_dec(x_3);
lean_dec_ref(x_2);
lean_dec(x_1);
x_423 = l_Lean_Elab_throwUnsupportedSyntax___at___00Lean_Elab_Command_elabMacroRulesAux_spec__0___redArg();
return x_423;
}
else
{
lean_object* x_424; lean_object* x_425; uint8_t x_426; 
x_424 = l_Lean_Syntax_getArg(x_419, x_166);
lean_dec(x_419);
x_425 = l_Lean_Elab_Command_elabMacroRules___lam__1___closed__18;
lean_inc(x_424);
x_426 = l_Lean_Syntax_isOfKind(x_424, x_425);
if (x_426 == 0)
{
lean_object* x_427; 
lean_dec(x_424);
lean_dec(x_3);
lean_dec_ref(x_2);
lean_dec(x_1);
x_427 = l_Lean_Elab_throwUnsupportedSyntax___at___00Lean_Elab_Command_elabMacroRulesAux_spec__0___redArg();
return x_427;
}
else
{
lean_object* x_428; 
x_428 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_428, 0, x_424);
x_401 = x_428;
x_402 = x_2;
x_403 = x_3;
x_404 = lean_box(0);
goto block_418;
}
}
}
else
{
lean_object* x_429; 
lean_dec(x_419);
x_429 = lean_box(0);
x_401 = x_429;
x_402 = x_2;
x_403 = x_3;
x_404 = lean_box(0);
goto block_418;
}
block_400:
{
lean_object* x_173; lean_object* x_174; lean_object* x_175; lean_object* x_176; uint8_t x_177; 
x_173 = lean_unsigned_to_nat(2u);
x_174 = l_Lean_Syntax_getArg(x_1, x_173);
x_175 = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabMacroRulesAux_spec__9___redArg___closed__6;
x_176 = l_Lean_Elab_Command_elabMacroRules___lam__1___closed__9;
lean_inc(x_174);
x_177 = l_Lean_Syntax_isOfKind(x_174, x_176);
if (x_177 == 0)
{
lean_object* x_178; 
lean_dec(x_174);
lean_dec(x_172);
lean_dec_ref(x_169);
lean_dec(x_168);
lean_dec(x_167);
lean_dec(x_1);
x_178 = l_Lean_Elab_throwUnsupportedSyntax___at___00Lean_Elab_Command_elabMacroRulesAux_spec__0___redArg();
return x_178;
}
else
{
lean_object* x_179; lean_object* x_180; lean_object* x_181; lean_object* x_182; uint8_t x_183; 
x_179 = lean_unsigned_to_nat(3u);
x_180 = l_Lean_Syntax_getArg(x_1, x_179);
x_181 = lean_unsigned_to_nat(4u);
x_182 = l_Lean_Syntax_getArg(x_1, x_181);
lean_inc(x_182);
x_183 = l_Lean_Syntax_matchesNull(x_182, x_166);
if (x_183 == 0)
{
lean_object* x_184; uint8_t x_185; 
x_184 = lean_unsigned_to_nat(5u);
lean_inc(x_182);
x_185 = l_Lean_Syntax_matchesNull(x_182, x_184);
if (x_185 == 0)
{
lean_object* x_186; 
lean_dec(x_182);
lean_dec(x_180);
lean_dec(x_174);
lean_dec(x_172);
lean_dec_ref(x_169);
lean_dec(x_168);
lean_dec(x_167);
lean_dec(x_1);
x_186 = l_Lean_Elab_throwUnsupportedSyntax___at___00Lean_Elab_Command_elabMacroRulesAux_spec__0___redArg();
return x_186;
}
else
{
lean_object* x_187; lean_object* x_188; uint8_t x_189; 
x_187 = l_Lean_Syntax_getArg(x_1, x_184);
lean_dec(x_1);
x_188 = l_Lean_Elab_Command_elabMacroRules___lam__1___closed__10;
lean_inc(x_187);
x_189 = l_Lean_Syntax_isOfKind(x_187, x_188);
if (x_189 == 0)
{
lean_object* x_190; 
lean_dec(x_187);
lean_dec(x_182);
lean_dec(x_180);
lean_dec(x_174);
lean_dec(x_172);
lean_dec_ref(x_169);
lean_dec(x_168);
lean_dec(x_167);
x_190 = l_Lean_Elab_throwUnsupportedSyntax___at___00Lean_Elab_Command_elabMacroRulesAux_spec__0___redArg();
return x_190;
}
else
{
lean_object* x_191; lean_object* x_192; uint8_t x_193; 
x_191 = l_Lean_Syntax_getArg(x_182, x_179);
lean_dec(x_182);
x_192 = l_Lean_Syntax_getArg(x_187, x_166);
lean_dec(x_187);
lean_inc(x_192);
x_193 = l_Lean_Syntax_matchesNull(x_192, x_171);
if (x_193 == 0)
{
lean_object* x_194; lean_object* x_195; lean_object* x_196; lean_object* x_197; lean_object* x_198; lean_object* x_199; lean_object* x_200; lean_object* x_201; lean_object* x_202; lean_object* x_203; 
x_194 = l_Lean_Syntax_getArgs(x_192);
lean_dec(x_192);
x_195 = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabMacroRulesAux_spec__9___redArg___closed__11;
x_196 = lean_box(2);
lean_inc_ref(x_194);
x_197 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_197, 0, x_196);
lean_ctor_set(x_197, 1, x_195);
lean_ctor_set(x_197, 2, x_194);
x_198 = l_Lean_Elab_Command_elabMacroRules___lam__1___closed__11;
lean_inc(x_180);
x_199 = lean_array_push(x_198, x_180);
x_200 = lean_array_push(x_199, x_197);
x_201 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_201, 0, x_196);
lean_ctor_set(x_201, 1, x_195);
lean_ctor_set(x_201, 2, x_200);
x_202 = l_Lean_TSyntax_getId(x_191);
lean_dec(x_191);
lean_inc(x_174);
x_203 = lean_alloc_closure((void*)(l_Lean_Elab_Command_elabMacroRules___lam__0___boxed), 10, 7);
lean_closure_set(x_203, 0, x_201);
lean_closure_set(x_203, 1, x_202);
lean_closure_set(x_203, 2, x_167);
lean_closure_set(x_203, 3, x_172);
lean_closure_set(x_203, 4, x_174);
lean_closure_set(x_203, 5, x_180);
lean_closure_set(x_203, 6, x_194);
if (x_177 == 0)
{
lean_object* x_204; 
lean_dec(x_174);
x_204 = l_Lean_withExporting___at___00Lean_Elab_Command_elabMacroRules_spec__0___redArg(x_203, x_177, x_169, x_168);
return x_204;
}
else
{
lean_object* x_205; uint8_t x_206; 
x_205 = l_Lean_Syntax_getArg(x_174, x_166);
lean_dec(x_174);
lean_inc(x_205);
x_206 = l_Lean_Syntax_matchesNull(x_205, x_171);
if (x_206 == 0)
{
lean_object* x_207; 
lean_dec(x_205);
x_207 = l_Lean_withExporting___at___00Lean_Elab_Command_elabMacroRules_spec__0___redArg(x_203, x_177, x_169, x_168);
return x_207;
}
else
{
lean_object* x_208; lean_object* x_209; uint8_t x_210; 
x_208 = l_Lean_Syntax_getArg(x_205, x_166);
lean_dec(x_205);
x_209 = l_Lean_Elab_Command_elabMacroRules___lam__1___closed__13;
x_210 = l_Lean_Syntax_isOfKind(x_208, x_209);
if (x_210 == 0)
{
lean_object* x_211; 
x_211 = l_Lean_withExporting___at___00Lean_Elab_Command_elabMacroRules_spec__0___redArg(x_203, x_177, x_169, x_168);
return x_211;
}
else
{
lean_object* x_212; 
x_212 = l_Lean_withExporting___at___00Lean_Elab_Command_elabMacroRules_spec__0___redArg(x_203, x_193, x_169, x_168);
return x_212;
}
}
}
}
else
{
lean_object* x_213; lean_object* x_214; uint8_t x_215; 
x_213 = l_Lean_Syntax_getArg(x_192, x_166);
x_214 = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabMacroRulesAux_spec__9___redArg___closed__8;
lean_inc(x_213);
x_215 = l_Lean_Syntax_isOfKind(x_213, x_214);
if (x_215 == 0)
{
lean_object* x_216; lean_object* x_217; lean_object* x_218; lean_object* x_219; lean_object* x_220; lean_object* x_221; lean_object* x_222; lean_object* x_223; lean_object* x_224; lean_object* x_225; 
lean_dec(x_213);
x_216 = l_Lean_Syntax_getArgs(x_192);
lean_dec(x_192);
x_217 = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabMacroRulesAux_spec__9___redArg___closed__11;
x_218 = lean_box(2);
lean_inc_ref(x_216);
x_219 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_219, 0, x_218);
lean_ctor_set(x_219, 1, x_217);
lean_ctor_set(x_219, 2, x_216);
x_220 = l_Lean_Elab_Command_elabMacroRules___lam__1___closed__11;
lean_inc(x_180);
x_221 = lean_array_push(x_220, x_180);
x_222 = lean_array_push(x_221, x_219);
x_223 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_223, 0, x_218);
lean_ctor_set(x_223, 1, x_217);
lean_ctor_set(x_223, 2, x_222);
x_224 = l_Lean_TSyntax_getId(x_191);
lean_dec(x_191);
lean_inc(x_174);
x_225 = lean_alloc_closure((void*)(l_Lean_Elab_Command_elabMacroRules___lam__0___boxed), 10, 7);
lean_closure_set(x_225, 0, x_223);
lean_closure_set(x_225, 1, x_224);
lean_closure_set(x_225, 2, x_167);
lean_closure_set(x_225, 3, x_172);
lean_closure_set(x_225, 4, x_174);
lean_closure_set(x_225, 5, x_180);
lean_closure_set(x_225, 6, x_216);
if (x_177 == 0)
{
lean_object* x_226; 
lean_dec(x_174);
x_226 = l_Lean_withExporting___at___00Lean_Elab_Command_elabMacroRules_spec__0___redArg(x_225, x_177, x_169, x_168);
return x_226;
}
else
{
lean_object* x_227; uint8_t x_228; 
x_227 = l_Lean_Syntax_getArg(x_174, x_166);
lean_dec(x_174);
lean_inc(x_227);
x_228 = l_Lean_Syntax_matchesNull(x_227, x_171);
if (x_228 == 0)
{
lean_object* x_229; 
lean_dec(x_227);
x_229 = l_Lean_withExporting___at___00Lean_Elab_Command_elabMacroRules_spec__0___redArg(x_225, x_177, x_169, x_168);
return x_229;
}
else
{
lean_object* x_230; lean_object* x_231; uint8_t x_232; 
x_230 = l_Lean_Syntax_getArg(x_227, x_166);
lean_dec(x_227);
x_231 = l_Lean_Elab_Command_elabMacroRules___lam__1___closed__13;
x_232 = l_Lean_Syntax_isOfKind(x_230, x_231);
if (x_232 == 0)
{
lean_object* x_233; 
x_233 = l_Lean_withExporting___at___00Lean_Elab_Command_elabMacroRules_spec__0___redArg(x_225, x_177, x_169, x_168);
return x_233;
}
else
{
lean_object* x_234; 
x_234 = l_Lean_withExporting___at___00Lean_Elab_Command_elabMacroRules_spec__0___redArg(x_225, x_215, x_169, x_168);
return x_234;
}
}
}
}
else
{
lean_object* x_235; uint8_t x_236; 
x_235 = l_Lean_Syntax_getArg(x_213, x_171);
lean_inc(x_235);
x_236 = l_Lean_Syntax_matchesNull(x_235, x_171);
if (x_236 == 0)
{
lean_object* x_237; lean_object* x_238; lean_object* x_239; lean_object* x_240; lean_object* x_241; lean_object* x_242; lean_object* x_243; lean_object* x_244; lean_object* x_245; lean_object* x_246; 
lean_dec(x_235);
lean_dec(x_213);
x_237 = l_Lean_Syntax_getArgs(x_192);
lean_dec(x_192);
x_238 = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabMacroRulesAux_spec__9___redArg___closed__11;
x_239 = lean_box(2);
lean_inc_ref(x_237);
x_240 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_240, 0, x_239);
lean_ctor_set(x_240, 1, x_238);
lean_ctor_set(x_240, 2, x_237);
x_241 = l_Lean_Elab_Command_elabMacroRules___lam__1___closed__11;
lean_inc(x_180);
x_242 = lean_array_push(x_241, x_180);
x_243 = lean_array_push(x_242, x_240);
x_244 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_244, 0, x_239);
lean_ctor_set(x_244, 1, x_238);
lean_ctor_set(x_244, 2, x_243);
x_245 = l_Lean_TSyntax_getId(x_191);
lean_dec(x_191);
lean_inc(x_174);
x_246 = lean_alloc_closure((void*)(l_Lean_Elab_Command_elabMacroRules___lam__0___boxed), 10, 7);
lean_closure_set(x_246, 0, x_244);
lean_closure_set(x_246, 1, x_245);
lean_closure_set(x_246, 2, x_167);
lean_closure_set(x_246, 3, x_172);
lean_closure_set(x_246, 4, x_174);
lean_closure_set(x_246, 5, x_180);
lean_closure_set(x_246, 6, x_237);
if (x_177 == 0)
{
lean_object* x_247; 
lean_dec(x_174);
x_247 = l_Lean_withExporting___at___00Lean_Elab_Command_elabMacroRules_spec__0___redArg(x_246, x_177, x_169, x_168);
return x_247;
}
else
{
lean_object* x_248; uint8_t x_249; 
x_248 = l_Lean_Syntax_getArg(x_174, x_166);
lean_dec(x_174);
lean_inc(x_248);
x_249 = l_Lean_Syntax_matchesNull(x_248, x_171);
if (x_249 == 0)
{
lean_object* x_250; 
lean_dec(x_248);
x_250 = l_Lean_withExporting___at___00Lean_Elab_Command_elabMacroRules_spec__0___redArg(x_246, x_177, x_169, x_168);
return x_250;
}
else
{
lean_object* x_251; lean_object* x_252; uint8_t x_253; 
x_251 = l_Lean_Syntax_getArg(x_248, x_166);
lean_dec(x_248);
x_252 = l_Lean_Elab_Command_elabMacroRules___lam__1___closed__13;
x_253 = l_Lean_Syntax_isOfKind(x_251, x_252);
if (x_253 == 0)
{
lean_object* x_254; 
x_254 = l_Lean_withExporting___at___00Lean_Elab_Command_elabMacroRules_spec__0___redArg(x_246, x_177, x_169, x_168);
return x_254;
}
else
{
lean_object* x_255; 
x_255 = l_Lean_withExporting___at___00Lean_Elab_Command_elabMacroRules_spec__0___redArg(x_246, x_236, x_169, x_168);
return x_255;
}
}
}
}
else
{
lean_object* x_256; uint8_t x_257; 
x_256 = l_Lean_Syntax_getArg(x_235, x_166);
lean_dec(x_235);
lean_inc(x_256);
x_257 = l_Lean_Syntax_matchesNull(x_256, x_171);
if (x_257 == 0)
{
lean_object* x_258; lean_object* x_259; lean_object* x_260; lean_object* x_261; lean_object* x_262; lean_object* x_263; lean_object* x_264; lean_object* x_265; lean_object* x_266; lean_object* x_267; 
lean_dec(x_256);
lean_dec(x_213);
x_258 = l_Lean_Syntax_getArgs(x_192);
lean_dec(x_192);
x_259 = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabMacroRulesAux_spec__9___redArg___closed__11;
x_260 = lean_box(2);
lean_inc_ref(x_258);
x_261 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_261, 0, x_260);
lean_ctor_set(x_261, 1, x_259);
lean_ctor_set(x_261, 2, x_258);
x_262 = l_Lean_Elab_Command_elabMacroRules___lam__1___closed__11;
lean_inc(x_180);
x_263 = lean_array_push(x_262, x_180);
x_264 = lean_array_push(x_263, x_261);
x_265 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_265, 0, x_260);
lean_ctor_set(x_265, 1, x_259);
lean_ctor_set(x_265, 2, x_264);
x_266 = l_Lean_TSyntax_getId(x_191);
lean_dec(x_191);
lean_inc(x_174);
x_267 = lean_alloc_closure((void*)(l_Lean_Elab_Command_elabMacroRules___lam__0___boxed), 10, 7);
lean_closure_set(x_267, 0, x_265);
lean_closure_set(x_267, 1, x_266);
lean_closure_set(x_267, 2, x_167);
lean_closure_set(x_267, 3, x_172);
lean_closure_set(x_267, 4, x_174);
lean_closure_set(x_267, 5, x_180);
lean_closure_set(x_267, 6, x_258);
if (x_177 == 0)
{
lean_object* x_268; 
lean_dec(x_174);
x_268 = l_Lean_withExporting___at___00Lean_Elab_Command_elabMacroRules_spec__0___redArg(x_267, x_177, x_169, x_168);
return x_268;
}
else
{
lean_object* x_269; uint8_t x_270; 
x_269 = l_Lean_Syntax_getArg(x_174, x_166);
lean_dec(x_174);
lean_inc(x_269);
x_270 = l_Lean_Syntax_matchesNull(x_269, x_171);
if (x_270 == 0)
{
lean_object* x_271; 
lean_dec(x_269);
x_271 = l_Lean_withExporting___at___00Lean_Elab_Command_elabMacroRules_spec__0___redArg(x_267, x_177, x_169, x_168);
return x_271;
}
else
{
lean_object* x_272; lean_object* x_273; uint8_t x_274; 
x_272 = l_Lean_Syntax_getArg(x_269, x_166);
lean_dec(x_269);
x_273 = l_Lean_Elab_Command_elabMacroRules___lam__1___closed__13;
x_274 = l_Lean_Syntax_isOfKind(x_272, x_273);
if (x_274 == 0)
{
lean_object* x_275; 
x_275 = l_Lean_withExporting___at___00Lean_Elab_Command_elabMacroRules_spec__0___redArg(x_267, x_177, x_169, x_168);
return x_275;
}
else
{
lean_object* x_276; 
x_276 = l_Lean_withExporting___at___00Lean_Elab_Command_elabMacroRules_spec__0___redArg(x_267, x_257, x_169, x_168);
return x_276;
}
}
}
}
else
{
lean_object* x_277; lean_object* x_278; uint8_t x_279; 
x_277 = l_Lean_Syntax_getArg(x_256, x_166);
lean_dec(x_256);
x_278 = l_Lean_Elab_Command_elabMacroRules___lam__1___closed__15;
lean_inc(x_277);
x_279 = l_Lean_Syntax_isOfKind(x_277, x_278);
if (x_279 == 0)
{
lean_object* x_280; lean_object* x_281; lean_object* x_282; lean_object* x_283; lean_object* x_284; lean_object* x_285; lean_object* x_286; lean_object* x_287; lean_object* x_288; lean_object* x_289; 
lean_dec(x_277);
lean_dec(x_213);
x_280 = l_Lean_Syntax_getArgs(x_192);
lean_dec(x_192);
x_281 = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabMacroRulesAux_spec__9___redArg___closed__11;
x_282 = lean_box(2);
lean_inc_ref(x_280);
x_283 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_283, 0, x_282);
lean_ctor_set(x_283, 1, x_281);
lean_ctor_set(x_283, 2, x_280);
x_284 = l_Lean_Elab_Command_elabMacroRules___lam__1___closed__11;
lean_inc(x_180);
x_285 = lean_array_push(x_284, x_180);
x_286 = lean_array_push(x_285, x_283);
x_287 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_287, 0, x_282);
lean_ctor_set(x_287, 1, x_281);
lean_ctor_set(x_287, 2, x_286);
x_288 = l_Lean_TSyntax_getId(x_191);
lean_dec(x_191);
lean_inc(x_174);
x_289 = lean_alloc_closure((void*)(l_Lean_Elab_Command_elabMacroRules___lam__0___boxed), 10, 7);
lean_closure_set(x_289, 0, x_287);
lean_closure_set(x_289, 1, x_288);
lean_closure_set(x_289, 2, x_167);
lean_closure_set(x_289, 3, x_172);
lean_closure_set(x_289, 4, x_174);
lean_closure_set(x_289, 5, x_180);
lean_closure_set(x_289, 6, x_280);
if (x_177 == 0)
{
lean_dec(x_174);
x_5 = x_168;
x_6 = lean_box(0);
x_7 = x_279;
x_8 = x_289;
x_9 = x_257;
x_10 = x_169;
x_11 = x_279;
goto block_14;
}
else
{
lean_object* x_290; uint8_t x_291; 
x_290 = l_Lean_Syntax_getArg(x_174, x_166);
lean_dec(x_174);
lean_inc(x_290);
x_291 = l_Lean_Syntax_matchesNull(x_290, x_171);
if (x_291 == 0)
{
lean_dec(x_290);
x_5 = x_168;
x_6 = lean_box(0);
x_7 = x_279;
x_8 = x_289;
x_9 = x_257;
x_10 = x_169;
x_11 = x_279;
goto block_14;
}
else
{
lean_object* x_292; lean_object* x_293; uint8_t x_294; 
x_292 = l_Lean_Syntax_getArg(x_290, x_166);
lean_dec(x_290);
x_293 = l_Lean_Elab_Command_elabMacroRules___lam__1___closed__13;
x_294 = l_Lean_Syntax_isOfKind(x_292, x_293);
if (x_294 == 0)
{
x_5 = x_168;
x_6 = lean_box(0);
x_7 = x_279;
x_8 = x_289;
x_9 = x_257;
x_10 = x_169;
x_11 = x_279;
goto block_14;
}
else
{
lean_object* x_295; 
x_295 = l_Lean_withExporting___at___00Lean_Elab_Command_elabMacroRules_spec__0___redArg(x_289, x_279, x_169, x_168);
return x_295;
}
}
}
}
else
{
lean_object* x_296; 
lean_dec(x_192);
x_296 = l_Lean_Elab_Command_getRef___redArg(x_169);
if (lean_obj_tag(x_296) == 0)
{
lean_object* x_297; uint8_t x_298; 
x_297 = lean_ctor_get(x_296, 0);
lean_inc(x_297);
lean_dec_ref(x_296);
x_298 = !lean_is_exclusive(x_169);
if (x_298 == 0)
{
lean_object* x_299; lean_object* x_300; lean_object* x_301; lean_object* x_302; lean_object* x_303; lean_object* x_304; lean_object* x_305; lean_object* x_306; lean_object* x_307; lean_object* x_308; lean_object* x_309; 
x_299 = lean_ctor_get(x_169, 5);
x_300 = lean_ctor_get(x_169, 7);
lean_dec(x_300);
x_301 = l_Lean_Syntax_getArg(x_213, x_179);
lean_dec(x_213);
x_302 = l_Lean_Elab_Command_elabMacroRules___lam__1___closed__11;
lean_inc(x_180);
x_303 = lean_array_push(x_302, x_180);
lean_inc(x_301);
x_304 = lean_array_push(x_303, x_301);
x_305 = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabMacroRulesAux_spec__9___redArg___closed__11;
x_306 = lean_box(2);
x_307 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_307, 0, x_306);
lean_ctor_set(x_307, 1, x_305);
lean_ctor_set(x_307, 2, x_304);
x_308 = l_Lean_replaceRef(x_307, x_297);
lean_dec(x_297);
lean_dec_ref(x_307);
lean_inc(x_299);
lean_ctor_set(x_169, 7, x_308);
x_309 = l_Lean_Elab_Command_getRef___redArg(x_169);
if (lean_obj_tag(x_309) == 0)
{
lean_object* x_310; lean_object* x_311; 
x_310 = lean_ctor_get(x_309, 0);
lean_inc(x_310);
lean_dec_ref(x_309);
x_311 = l_Lean_Elab_Command_getCurrMacroScope___redArg(x_169);
if (lean_obj_tag(x_311) == 0)
{
lean_object* x_312; 
lean_dec_ref(x_311);
x_312 = l_Lean_SourceInfo_fromRef(x_310, x_183);
lean_dec(x_310);
if (lean_obj_tag(x_299) == 0)
{
lean_object* x_313; 
x_313 = l_Lean_getMainModule___at___00Lean_Elab_Command_elabMacroRulesAux_spec__8___redArg(x_168);
lean_dec_ref(x_313);
x_132 = x_299;
x_133 = x_167;
x_134 = x_174;
x_135 = x_277;
x_136 = x_191;
x_137 = x_171;
x_138 = x_172;
x_139 = x_168;
x_140 = x_180;
x_141 = x_175;
x_142 = x_183;
x_143 = x_305;
x_144 = x_312;
x_145 = x_169;
x_146 = x_301;
x_147 = lean_box(0);
goto block_164;
}
else
{
x_132 = x_299;
x_133 = x_167;
x_134 = x_174;
x_135 = x_277;
x_136 = x_191;
x_137 = x_171;
x_138 = x_172;
x_139 = x_168;
x_140 = x_180;
x_141 = x_175;
x_142 = x_183;
x_143 = x_305;
x_144 = x_312;
x_145 = x_169;
x_146 = x_301;
x_147 = lean_box(0);
goto block_164;
}
}
else
{
uint8_t x_314; 
lean_dec(x_310);
lean_dec_ref(x_169);
lean_dec(x_301);
lean_dec(x_299);
lean_dec(x_277);
lean_dec(x_191);
lean_dec(x_180);
lean_dec(x_174);
lean_dec(x_172);
lean_dec(x_168);
lean_dec(x_167);
x_314 = !lean_is_exclusive(x_311);
if (x_314 == 0)
{
return x_311;
}
else
{
lean_object* x_315; lean_object* x_316; 
x_315 = lean_ctor_get(x_311, 0);
lean_inc(x_315);
lean_dec(x_311);
x_316 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_316, 0, x_315);
return x_316;
}
}
}
else
{
lean_dec_ref(x_169);
lean_dec(x_301);
lean_dec(x_299);
lean_dec(x_277);
lean_dec(x_191);
lean_dec(x_180);
lean_dec(x_174);
lean_dec(x_172);
lean_dec(x_168);
lean_dec(x_167);
return x_309;
}
}
else
{
lean_object* x_317; lean_object* x_318; lean_object* x_319; lean_object* x_320; lean_object* x_321; lean_object* x_322; lean_object* x_323; lean_object* x_324; lean_object* x_325; uint8_t x_326; lean_object* x_327; lean_object* x_328; lean_object* x_329; lean_object* x_330; lean_object* x_331; lean_object* x_332; lean_object* x_333; lean_object* x_334; lean_object* x_335; lean_object* x_336; 
x_317 = lean_ctor_get(x_169, 0);
x_318 = lean_ctor_get(x_169, 1);
x_319 = lean_ctor_get(x_169, 2);
x_320 = lean_ctor_get(x_169, 3);
x_321 = lean_ctor_get(x_169, 4);
x_322 = lean_ctor_get(x_169, 5);
x_323 = lean_ctor_get(x_169, 6);
x_324 = lean_ctor_get(x_169, 8);
x_325 = lean_ctor_get(x_169, 9);
x_326 = lean_ctor_get_uint8(x_169, sizeof(void*)*10);
lean_inc(x_325);
lean_inc(x_324);
lean_inc(x_323);
lean_inc(x_322);
lean_inc(x_321);
lean_inc(x_320);
lean_inc(x_319);
lean_inc(x_318);
lean_inc(x_317);
lean_dec(x_169);
x_327 = l_Lean_Syntax_getArg(x_213, x_179);
lean_dec(x_213);
x_328 = l_Lean_Elab_Command_elabMacroRules___lam__1___closed__11;
lean_inc(x_180);
x_329 = lean_array_push(x_328, x_180);
lean_inc(x_327);
x_330 = lean_array_push(x_329, x_327);
x_331 = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabMacroRulesAux_spec__9___redArg___closed__11;
x_332 = lean_box(2);
x_333 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_333, 0, x_332);
lean_ctor_set(x_333, 1, x_331);
lean_ctor_set(x_333, 2, x_330);
x_334 = l_Lean_replaceRef(x_333, x_297);
lean_dec(x_297);
lean_dec_ref(x_333);
lean_inc(x_322);
x_335 = lean_alloc_ctor(0, 10, 1);
lean_ctor_set(x_335, 0, x_317);
lean_ctor_set(x_335, 1, x_318);
lean_ctor_set(x_335, 2, x_319);
lean_ctor_set(x_335, 3, x_320);
lean_ctor_set(x_335, 4, x_321);
lean_ctor_set(x_335, 5, x_322);
lean_ctor_set(x_335, 6, x_323);
lean_ctor_set(x_335, 7, x_334);
lean_ctor_set(x_335, 8, x_324);
lean_ctor_set(x_335, 9, x_325);
lean_ctor_set_uint8(x_335, sizeof(void*)*10, x_326);
x_336 = l_Lean_Elab_Command_getRef___redArg(x_335);
if (lean_obj_tag(x_336) == 0)
{
lean_object* x_337; lean_object* x_338; 
x_337 = lean_ctor_get(x_336, 0);
lean_inc(x_337);
lean_dec_ref(x_336);
x_338 = l_Lean_Elab_Command_getCurrMacroScope___redArg(x_335);
if (lean_obj_tag(x_338) == 0)
{
lean_object* x_339; 
lean_dec_ref(x_338);
x_339 = l_Lean_SourceInfo_fromRef(x_337, x_183);
lean_dec(x_337);
if (lean_obj_tag(x_322) == 0)
{
lean_object* x_340; 
x_340 = l_Lean_getMainModule___at___00Lean_Elab_Command_elabMacroRulesAux_spec__8___redArg(x_168);
lean_dec_ref(x_340);
x_132 = x_322;
x_133 = x_167;
x_134 = x_174;
x_135 = x_277;
x_136 = x_191;
x_137 = x_171;
x_138 = x_172;
x_139 = x_168;
x_140 = x_180;
x_141 = x_175;
x_142 = x_183;
x_143 = x_331;
x_144 = x_339;
x_145 = x_335;
x_146 = x_327;
x_147 = lean_box(0);
goto block_164;
}
else
{
x_132 = x_322;
x_133 = x_167;
x_134 = x_174;
x_135 = x_277;
x_136 = x_191;
x_137 = x_171;
x_138 = x_172;
x_139 = x_168;
x_140 = x_180;
x_141 = x_175;
x_142 = x_183;
x_143 = x_331;
x_144 = x_339;
x_145 = x_335;
x_146 = x_327;
x_147 = lean_box(0);
goto block_164;
}
}
else
{
lean_object* x_341; lean_object* x_342; lean_object* x_343; 
lean_dec(x_337);
lean_dec_ref(x_335);
lean_dec(x_327);
lean_dec(x_322);
lean_dec(x_277);
lean_dec(x_191);
lean_dec(x_180);
lean_dec(x_174);
lean_dec(x_172);
lean_dec(x_168);
lean_dec(x_167);
x_341 = lean_ctor_get(x_338, 0);
lean_inc(x_341);
if (lean_is_exclusive(x_338)) {
 lean_ctor_release(x_338, 0);
 x_342 = x_338;
} else {
 lean_dec_ref(x_338);
 x_342 = lean_box(0);
}
if (lean_is_scalar(x_342)) {
 x_343 = lean_alloc_ctor(1, 1, 0);
} else {
 x_343 = x_342;
}
lean_ctor_set(x_343, 0, x_341);
return x_343;
}
}
else
{
lean_dec_ref(x_335);
lean_dec(x_327);
lean_dec(x_322);
lean_dec(x_277);
lean_dec(x_191);
lean_dec(x_180);
lean_dec(x_174);
lean_dec(x_172);
lean_dec(x_168);
lean_dec(x_167);
return x_336;
}
}
}
else
{
lean_dec(x_277);
lean_dec(x_213);
lean_dec(x_191);
lean_dec(x_180);
lean_dec(x_174);
lean_dec(x_172);
lean_dec_ref(x_169);
lean_dec(x_168);
lean_dec(x_167);
return x_296;
}
}
}
}
}
}
}
}
}
else
{
lean_object* x_344; lean_object* x_345; lean_object* x_346; uint8_t x_347; 
lean_dec(x_182);
x_344 = lean_unsigned_to_nat(5u);
x_345 = l_Lean_Syntax_getArg(x_1, x_344);
lean_dec(x_1);
x_346 = l_Lean_Elab_Command_elabMacroRules___lam__1___closed__10;
lean_inc(x_345);
x_347 = l_Lean_Syntax_isOfKind(x_345, x_346);
if (x_347 == 0)
{
lean_object* x_348; 
lean_dec(x_345);
lean_dec(x_180);
lean_dec(x_174);
lean_dec(x_172);
lean_dec_ref(x_169);
lean_dec(x_168);
lean_dec(x_167);
x_348 = l_Lean_Elab_throwUnsupportedSyntax___at___00Lean_Elab_Command_elabMacroRulesAux_spec__0___redArg();
return x_348;
}
else
{
lean_object* x_349; 
x_349 = l_Lean_Elab_Command_getRef___redArg(x_169);
if (lean_obj_tag(x_349) == 0)
{
lean_object* x_350; uint8_t x_351; 
x_350 = lean_ctor_get(x_349, 0);
lean_inc(x_350);
lean_dec_ref(x_349);
x_351 = !lean_is_exclusive(x_169);
if (x_351 == 0)
{
lean_object* x_352; lean_object* x_353; lean_object* x_354; lean_object* x_355; lean_object* x_356; lean_object* x_357; lean_object* x_358; lean_object* x_359; lean_object* x_360; lean_object* x_361; lean_object* x_362; lean_object* x_363; lean_object* x_364; 
x_352 = lean_ctor_get(x_169, 7);
lean_dec(x_352);
x_353 = lean_alloc_closure((void*)(l_Lean_Elab_Command_elabMacroRules___lam__5___boxed), 14, 9);
lean_closure_set(x_353, 0, x_346);
lean_closure_set(x_353, 1, x_18);
lean_closure_set(x_353, 2, x_174);
lean_closure_set(x_353, 3, x_17);
lean_closure_set(x_353, 4, x_172);
lean_closure_set(x_353, 5, x_15);
lean_closure_set(x_353, 6, x_16);
lean_closure_set(x_353, 7, x_175);
lean_closure_set(x_353, 8, x_167);
x_354 = l_Lean_Syntax_getArg(x_345, x_166);
lean_dec(x_345);
x_355 = l_Lean_Syntax_getArgs(x_354);
lean_dec(x_354);
x_356 = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabMacroRulesAux_spec__9___redArg___closed__11;
x_357 = lean_box(2);
lean_inc_ref(x_355);
x_358 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_358, 0, x_357);
lean_ctor_set(x_358, 1, x_356);
lean_ctor_set(x_358, 2, x_355);
x_359 = l_Lean_Elab_Command_elabMacroRules___lam__1___closed__11;
x_360 = lean_array_push(x_359, x_180);
x_361 = lean_array_push(x_360, x_358);
x_362 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_362, 0, x_357);
lean_ctor_set(x_362, 1, x_356);
lean_ctor_set(x_362, 2, x_361);
x_363 = l_Lean_replaceRef(x_362, x_350);
lean_dec(x_350);
lean_dec_ref(x_362);
lean_ctor_set(x_169, 7, x_363);
x_364 = l_Lean_Elab_Command_expandNoKindMacroRulesAux(x_355, x_17, x_353, x_169, x_168);
lean_dec_ref(x_355);
if (lean_obj_tag(x_364) == 0)
{
uint8_t x_365; 
x_365 = !lean_is_exclusive(x_364);
if (x_365 == 0)
{
return x_364;
}
else
{
lean_object* x_366; lean_object* x_367; 
x_366 = lean_ctor_get(x_364, 0);
lean_inc(x_366);
lean_dec(x_364);
x_367 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_367, 0, x_366);
return x_367;
}
}
else
{
uint8_t x_368; 
x_368 = !lean_is_exclusive(x_364);
if (x_368 == 0)
{
return x_364;
}
else
{
lean_object* x_369; lean_object* x_370; 
x_369 = lean_ctor_get(x_364, 0);
lean_inc(x_369);
lean_dec(x_364);
x_370 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_370, 0, x_369);
return x_370;
}
}
}
else
{
lean_object* x_371; lean_object* x_372; lean_object* x_373; lean_object* x_374; lean_object* x_375; lean_object* x_376; lean_object* x_377; lean_object* x_378; lean_object* x_379; uint8_t x_380; lean_object* x_381; lean_object* x_382; lean_object* x_383; lean_object* x_384; lean_object* x_385; lean_object* x_386; lean_object* x_387; lean_object* x_388; lean_object* x_389; lean_object* x_390; lean_object* x_391; lean_object* x_392; lean_object* x_393; 
x_371 = lean_ctor_get(x_169, 0);
x_372 = lean_ctor_get(x_169, 1);
x_373 = lean_ctor_get(x_169, 2);
x_374 = lean_ctor_get(x_169, 3);
x_375 = lean_ctor_get(x_169, 4);
x_376 = lean_ctor_get(x_169, 5);
x_377 = lean_ctor_get(x_169, 6);
x_378 = lean_ctor_get(x_169, 8);
x_379 = lean_ctor_get(x_169, 9);
x_380 = lean_ctor_get_uint8(x_169, sizeof(void*)*10);
lean_inc(x_379);
lean_inc(x_378);
lean_inc(x_377);
lean_inc(x_376);
lean_inc(x_375);
lean_inc(x_374);
lean_inc(x_373);
lean_inc(x_372);
lean_inc(x_371);
lean_dec(x_169);
x_381 = lean_alloc_closure((void*)(l_Lean_Elab_Command_elabMacroRules___lam__5___boxed), 14, 9);
lean_closure_set(x_381, 0, x_346);
lean_closure_set(x_381, 1, x_18);
lean_closure_set(x_381, 2, x_174);
lean_closure_set(x_381, 3, x_17);
lean_closure_set(x_381, 4, x_172);
lean_closure_set(x_381, 5, x_15);
lean_closure_set(x_381, 6, x_16);
lean_closure_set(x_381, 7, x_175);
lean_closure_set(x_381, 8, x_167);
x_382 = l_Lean_Syntax_getArg(x_345, x_166);
lean_dec(x_345);
x_383 = l_Lean_Syntax_getArgs(x_382);
lean_dec(x_382);
x_384 = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabMacroRulesAux_spec__9___redArg___closed__11;
x_385 = lean_box(2);
lean_inc_ref(x_383);
x_386 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_386, 0, x_385);
lean_ctor_set(x_386, 1, x_384);
lean_ctor_set(x_386, 2, x_383);
x_387 = l_Lean_Elab_Command_elabMacroRules___lam__1___closed__11;
x_388 = lean_array_push(x_387, x_180);
x_389 = lean_array_push(x_388, x_386);
x_390 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_390, 0, x_385);
lean_ctor_set(x_390, 1, x_384);
lean_ctor_set(x_390, 2, x_389);
x_391 = l_Lean_replaceRef(x_390, x_350);
lean_dec(x_350);
lean_dec_ref(x_390);
x_392 = lean_alloc_ctor(0, 10, 1);
lean_ctor_set(x_392, 0, x_371);
lean_ctor_set(x_392, 1, x_372);
lean_ctor_set(x_392, 2, x_373);
lean_ctor_set(x_392, 3, x_374);
lean_ctor_set(x_392, 4, x_375);
lean_ctor_set(x_392, 5, x_376);
lean_ctor_set(x_392, 6, x_377);
lean_ctor_set(x_392, 7, x_391);
lean_ctor_set(x_392, 8, x_378);
lean_ctor_set(x_392, 9, x_379);
lean_ctor_set_uint8(x_392, sizeof(void*)*10, x_380);
x_393 = l_Lean_Elab_Command_expandNoKindMacroRulesAux(x_383, x_17, x_381, x_392, x_168);
lean_dec_ref(x_383);
if (lean_obj_tag(x_393) == 0)
{
lean_object* x_394; lean_object* x_395; lean_object* x_396; 
x_394 = lean_ctor_get(x_393, 0);
lean_inc(x_394);
if (lean_is_exclusive(x_393)) {
 lean_ctor_release(x_393, 0);
 x_395 = x_393;
} else {
 lean_dec_ref(x_393);
 x_395 = lean_box(0);
}
if (lean_is_scalar(x_395)) {
 x_396 = lean_alloc_ctor(0, 1, 0);
} else {
 x_396 = x_395;
}
lean_ctor_set(x_396, 0, x_394);
return x_396;
}
else
{
lean_object* x_397; lean_object* x_398; lean_object* x_399; 
x_397 = lean_ctor_get(x_393, 0);
lean_inc(x_397);
if (lean_is_exclusive(x_393)) {
 lean_ctor_release(x_393, 0);
 x_398 = x_393;
} else {
 lean_dec_ref(x_393);
 x_398 = lean_box(0);
}
if (lean_is_scalar(x_398)) {
 x_399 = lean_alloc_ctor(1, 1, 0);
} else {
 x_399 = x_398;
}
lean_ctor_set(x_399, 0, x_397);
return x_399;
}
}
}
else
{
lean_dec(x_345);
lean_dec(x_180);
lean_dec(x_174);
lean_dec(x_172);
lean_dec_ref(x_169);
lean_dec(x_168);
lean_dec(x_167);
return x_349;
}
}
}
}
}
block_418:
{
lean_object* x_405; lean_object* x_406; uint8_t x_407; 
x_405 = lean_unsigned_to_nat(1u);
x_406 = l_Lean_Syntax_getArg(x_1, x_405);
x_407 = l_Lean_Syntax_isNone(x_406);
if (x_407 == 0)
{
uint8_t x_408; 
lean_inc(x_406);
x_408 = l_Lean_Syntax_matchesNull(x_406, x_405);
if (x_408 == 0)
{
lean_object* x_409; 
lean_dec(x_406);
lean_dec(x_403);
lean_dec_ref(x_402);
lean_dec(x_401);
lean_dec(x_1);
x_409 = l_Lean_Elab_throwUnsupportedSyntax___at___00Lean_Elab_Command_elabMacroRulesAux_spec__0___redArg();
return x_409;
}
else
{
lean_object* x_410; lean_object* x_411; uint8_t x_412; 
x_410 = l_Lean_Syntax_getArg(x_406, x_166);
lean_dec(x_406);
x_411 = l_Lean_Elab_Command_elabMacroRules___lam__1___closed__16;
lean_inc(x_410);
x_412 = l_Lean_Syntax_isOfKind(x_410, x_411);
if (x_412 == 0)
{
lean_object* x_413; 
lean_dec(x_410);
lean_dec(x_403);
lean_dec_ref(x_402);
lean_dec(x_401);
lean_dec(x_1);
x_413 = l_Lean_Elab_throwUnsupportedSyntax___at___00Lean_Elab_Command_elabMacroRulesAux_spec__0___redArg();
return x_413;
}
else
{
lean_object* x_414; lean_object* x_415; lean_object* x_416; 
x_414 = l_Lean_Syntax_getArg(x_410, x_405);
lean_dec(x_410);
x_415 = l_Lean_Syntax_getArgs(x_414);
lean_dec(x_414);
x_416 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_416, 0, x_415);
x_167 = x_401;
x_168 = x_403;
x_169 = x_402;
x_170 = lean_box(0);
x_171 = x_405;
x_172 = x_416;
goto block_400;
}
}
}
else
{
lean_object* x_417; 
lean_dec(x_406);
x_417 = lean_box(0);
x_167 = x_401;
x_168 = x_403;
x_169 = x_402;
x_170 = lean_box(0);
x_171 = x_405;
x_172 = x_417;
goto block_400;
}
}
}
block_14:
{
if (x_11 == 0)
{
lean_object* x_12; 
x_12 = l_Lean_withExporting___at___00Lean_Elab_Command_elabMacroRules_spec__0___redArg(x_8, x_9, x_10, x_5);
return x_12;
}
else
{
lean_object* x_13; 
x_13 = l_Lean_withExporting___at___00Lean_Elab_Command_elabMacroRules_spec__0___redArg(x_8, x_7, x_10, x_5);
return x_13;
}
}
block_84:
{
lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; 
lean_inc_ref(x_27);
x_36 = l_Array_append___redArg(x_27, x_35);
lean_dec_ref(x_35);
lean_inc(x_28);
lean_inc(x_33);
x_37 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_37, 0, x_33);
lean_ctor_set(x_37, 1, x_28);
lean_ctor_set(x_37, 2, x_36);
x_38 = l_Lean_Elab_Command_elabMacroRulesAux___closed__0;
lean_inc_ref(x_26);
x_39 = l_Lean_Name_mkStr4(x_15, x_16, x_26, x_38);
x_40 = l_Lean_Elab_Command_elabMacroRulesAux___closed__1;
lean_inc(x_33);
x_41 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_41, 0, x_33);
lean_ctor_set(x_41, 1, x_40);
lean_inc_ref(x_27);
x_42 = l_Array_append___redArg(x_27, x_30);
lean_dec_ref(x_30);
lean_inc(x_28);
lean_inc(x_33);
x_43 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_43, 0, x_33);
lean_ctor_set(x_43, 1, x_28);
lean_ctor_set(x_43, 2, x_42);
x_44 = l_Lean_Elab_Command_elabMacroRulesAux___closed__2;
lean_inc(x_33);
x_45 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_45, 0, x_33);
lean_ctor_set(x_45, 1, x_44);
lean_inc(x_33);
x_46 = l_Lean_Syntax_node3(x_33, x_39, x_41, x_43, x_45);
lean_inc(x_28);
lean_inc(x_33);
x_47 = l_Lean_Syntax_node1(x_33, x_28, x_46);
lean_inc(x_33);
x_48 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_48, 0, x_33);
lean_ctor_set(x_48, 1, x_31);
x_49 = l_Lean_TSyntax_getId(x_21);
x_50 = l_Lean_mkIdentFrom(x_24, x_49, x_19);
lean_dec(x_24);
lean_inc(x_28);
lean_inc(x_33);
x_51 = l_Lean_Syntax_node2(x_33, x_28, x_50, x_21);
x_52 = l_Lean_Elab_Command_elabMacroRulesAux___closed__6;
lean_inc(x_33);
x_53 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_53, 0, x_33);
lean_ctor_set(x_53, 1, x_52);
x_54 = l_Lean_Elab_Command_elabMacroRulesAux___closed__8;
x_55 = l_Lean_Elab_Command_elabMacroRulesAux___closed__9;
x_56 = l_Lean_addMacroScope(x_29, x_55, x_32);
x_57 = l_Lean_Elab_Command_elabMacroRules___lam__1___closed__6;
lean_inc(x_33);
x_58 = lean_alloc_ctor(3, 4, 0);
lean_ctor_set(x_58, 0, x_33);
lean_ctor_set(x_58, 1, x_54);
lean_ctor_set(x_58, 2, x_56);
lean_ctor_set(x_58, 3, x_57);
x_59 = l_Lean_Elab_Command_elabMacroRulesAux___closed__10;
lean_inc(x_33);
x_60 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_60, 0, x_33);
lean_ctor_set(x_60, 1, x_59);
x_61 = l_Lean_Elab_Command_elabMacroRulesAux___closed__11;
lean_inc_ref(x_26);
x_62 = l_Lean_Name_mkStr4(x_15, x_16, x_26, x_61);
lean_inc(x_33);
x_63 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_63, 0, x_33);
lean_ctor_set(x_63, 1, x_61);
x_64 = l_Lean_Elab_Command_elabMacroRules___lam__1___closed__7;
x_65 = l_Lean_Name_mkStr4(x_15, x_16, x_26, x_64);
lean_inc(x_28);
lean_inc(x_33);
x_66 = l_Lean_Syntax_node1(x_33, x_28, x_22);
lean_inc(x_33);
x_67 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_67, 0, x_33);
lean_ctor_set(x_67, 1, x_28);
lean_ctor_set(x_67, 2, x_27);
x_68 = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabMacroRulesAux_spec__9___redArg___closed__13;
lean_inc(x_33);
x_69 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_69, 0, x_33);
lean_ctor_set(x_69, 1, x_68);
lean_inc(x_33);
x_70 = l_Lean_Syntax_node4(x_33, x_65, x_66, x_67, x_69, x_34);
lean_inc(x_33);
x_71 = l_Lean_Syntax_node2(x_33, x_62, x_63, x_70);
x_72 = l_Lean_Elab_Command_elabMacroRulesAux___closed__29;
x_73 = lean_array_push(x_72, x_37);
x_74 = lean_array_push(x_73, x_47);
x_75 = lean_array_push(x_74, x_23);
x_76 = lean_array_push(x_75, x_48);
x_77 = lean_array_push(x_76, x_51);
x_78 = lean_array_push(x_77, x_53);
x_79 = lean_array_push(x_78, x_58);
x_80 = lean_array_push(x_79, x_60);
x_81 = lean_array_push(x_80, x_71);
x_82 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_82, 0, x_33);
lean_ctor_set(x_82, 1, x_25);
lean_ctor_set(x_82, 2, x_81);
x_83 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_83, 0, x_82);
return x_83;
}
block_104:
{
lean_object* x_98; lean_object* x_99; lean_object* x_100; 
x_98 = l_Lean_Elab_Command_elabMacroRulesAux___closed__32;
x_99 = l_Lean_Elab_Command_elabMacroRulesAux___closed__33;
x_100 = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabMacroRulesAux_spec__9___redArg___closed__12;
if (lean_obj_tag(x_85) == 1)
{
lean_object* x_101; lean_object* x_102; 
x_101 = lean_ctor_get(x_85, 0);
lean_inc(x_101);
lean_dec_ref(x_85);
x_102 = l_Array_mkArray1___redArg(x_101);
x_20 = lean_box(0);
x_21 = x_89;
x_22 = x_88;
x_23 = x_93;
x_24 = x_86;
x_25 = x_99;
x_26 = x_87;
x_27 = x_100;
x_28 = x_90;
x_29 = x_96;
x_30 = x_92;
x_31 = x_98;
x_32 = x_91;
x_33 = x_94;
x_34 = x_95;
x_35 = x_102;
goto block_84;
}
else
{
lean_object* x_103; 
lean_dec(x_85);
x_103 = l_Lean_Elab_Command_elabMacroRulesAux___closed__34;
x_20 = lean_box(0);
x_21 = x_89;
x_22 = x_88;
x_23 = x_93;
x_24 = x_86;
x_25 = x_99;
x_26 = x_87;
x_27 = x_100;
x_28 = x_90;
x_29 = x_96;
x_30 = x_92;
x_31 = x_98;
x_32 = x_91;
x_33 = x_94;
x_34 = x_95;
x_35 = x_103;
goto block_84;
}
}
block_131:
{
lean_object* x_119; 
x_119 = l_Lean_Elab_Command_getRef___redArg(x_116);
if (lean_obj_tag(x_119) == 0)
{
lean_object* x_120; lean_object* x_121; 
x_120 = lean_ctor_get(x_119, 0);
lean_inc(x_120);
lean_dec_ref(x_119);
x_121 = l_Lean_Elab_Command_getCurrMacroScope___redArg(x_116);
lean_dec_ref(x_116);
if (lean_obj_tag(x_121) == 0)
{
lean_object* x_122; lean_object* x_123; lean_object* x_124; 
x_122 = lean_ctor_get(x_121, 0);
lean_inc(x_122);
lean_dec_ref(x_121);
x_123 = l_Lean_Parser_Command_visibility_ofAttrKind(x_107);
x_124 = l_Lean_SourceInfo_fromRef(x_120, x_114);
lean_dec(x_120);
if (lean_obj_tag(x_105) == 0)
{
lean_object* x_125; lean_object* x_126; 
x_125 = l_Lean_getMainModule___at___00Lean_Elab_Command_elabMacroRulesAux_spec__8___redArg(x_111);
lean_dec(x_111);
x_126 = lean_ctor_get(x_125, 0);
lean_inc(x_126);
lean_dec_ref(x_125);
x_85 = x_106;
x_86 = x_112;
x_87 = x_113;
x_88 = x_108;
x_89 = x_109;
x_90 = x_115;
x_91 = x_122;
x_92 = x_118;
x_93 = x_123;
x_94 = x_124;
x_95 = x_117;
x_96 = x_126;
x_97 = lean_box(0);
goto block_104;
}
else
{
lean_object* x_127; 
lean_dec(x_111);
x_127 = lean_ctor_get(x_105, 0);
lean_inc(x_127);
lean_dec_ref(x_105);
x_85 = x_106;
x_86 = x_112;
x_87 = x_113;
x_88 = x_108;
x_89 = x_109;
x_90 = x_115;
x_91 = x_122;
x_92 = x_118;
x_93 = x_123;
x_94 = x_124;
x_95 = x_117;
x_96 = x_127;
x_97 = lean_box(0);
goto block_104;
}
}
else
{
uint8_t x_128; 
lean_dec(x_120);
lean_dec_ref(x_118);
lean_dec(x_117);
lean_dec(x_115);
lean_dec_ref(x_113);
lean_dec(x_112);
lean_dec(x_111);
lean_dec(x_109);
lean_dec(x_108);
lean_dec(x_107);
lean_dec(x_106);
lean_dec(x_105);
x_128 = !lean_is_exclusive(x_121);
if (x_128 == 0)
{
return x_121;
}
else
{
lean_object* x_129; lean_object* x_130; 
x_129 = lean_ctor_get(x_121, 0);
lean_inc(x_129);
lean_dec(x_121);
x_130 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_130, 0, x_129);
return x_130;
}
}
}
else
{
lean_dec_ref(x_118);
lean_dec(x_117);
lean_dec_ref(x_116);
lean_dec(x_115);
lean_dec_ref(x_113);
lean_dec(x_112);
lean_dec(x_111);
lean_dec(x_109);
lean_dec(x_108);
lean_dec(x_107);
lean_dec(x_106);
lean_dec(x_105);
return x_119;
}
}
block_164:
{
lean_object* x_148; lean_object* x_149; lean_object* x_150; lean_object* x_151; lean_object* x_152; lean_object* x_153; lean_object* x_154; 
x_148 = l_Lean_Elab_Command_elabMacroRulesAux___closed__35;
lean_inc_ref(x_141);
x_149 = l_Lean_Name_mkStr4(x_15, x_16, x_141, x_148);
x_150 = l_Lean_Elab_Command_elabMacroRulesAux___closed__38;
x_151 = l_Lean_Elab_Command_elabMacroRulesAux___closed__39;
lean_inc(x_144);
x_152 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_152, 0, x_144);
lean_ctor_set(x_152, 1, x_150);
lean_inc(x_136);
lean_inc(x_144);
x_153 = l_Lean_Syntax_node2(x_144, x_151, x_152, x_136);
lean_inc(x_134);
x_154 = l_Lean_Syntax_node2(x_144, x_149, x_134, x_153);
if (lean_obj_tag(x_138) == 0)
{
lean_object* x_155; lean_object* x_156; lean_object* x_157; lean_object* x_158; 
x_155 = l_Lean_Elab_Command_elabMacroRulesAux___closed__40;
x_156 = lean_mk_empty_array_with_capacity(x_137);
x_157 = lean_array_push(x_156, x_154);
x_158 = l_Lean_Syntax_SepArray_ofElems(x_155, x_157);
lean_dec_ref(x_157);
x_105 = x_132;
x_106 = x_133;
x_107 = x_134;
x_108 = x_135;
x_109 = x_136;
x_110 = lean_box(0);
x_111 = x_139;
x_112 = x_140;
x_113 = x_141;
x_114 = x_142;
x_115 = x_143;
x_116 = x_145;
x_117 = x_146;
x_118 = x_158;
goto block_131;
}
else
{
lean_object* x_159; lean_object* x_160; lean_object* x_161; lean_object* x_162; lean_object* x_163; 
x_159 = lean_ctor_get(x_138, 0);
lean_inc(x_159);
lean_dec_ref(x_138);
x_160 = l_Lean_Elab_Command_elabMacroRulesAux___closed__40;
x_161 = l_Lean_Syntax_TSepArray_getElems___redArg(x_159);
lean_dec(x_159);
x_162 = lean_array_push(x_161, x_154);
x_163 = l_Lean_Syntax_SepArray_ofElems(x_160, x_162);
lean_dec_ref(x_162);
x_105 = x_132;
x_106 = x_133;
x_107 = x_134;
x_108 = x_135;
x_109 = x_136;
x_110 = lean_box(0);
x_111 = x_139;
x_112 = x_140;
x_113 = x_141;
x_114 = x_142;
x_115 = x_143;
x_116 = x_145;
x_117 = x_146;
x_118 = x_163;
goto block_131;
}
}
}
}
LEAN_EXPORT lean_object* l_Lean_Elab_Command_elabMacroRules___lam__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
lean_object* x_5; 
x_5 = l_Lean_Elab_Command_elabMacroRules___lam__1(x_1, x_2, x_3);
return x_5;
}
}
LEAN_EXPORT lean_object* l_Lean_Elab_Command_elabMacroRules(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_5; lean_object* x_6; 
x_5 = lean_alloc_closure((void*)(l_Lean_Elab_Command_elabMacroRules___lam__1___boxed), 4, 0);
x_6 = l_Lean_Elab_Command_adaptExpander(x_5, x_1, x_2, x_3);
return x_6;
}
}
LEAN_EXPORT lean_object* l_Lean_withExporting___at___00Lean_Elab_Command_elabMacroRules_spec__0___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) {
_start:
{
uint8_t x_7; lean_object* x_8; 
x_7 = lean_unbox(x_3);
x_8 = l_Lean_withExporting___at___00Lean_Elab_Command_elabMacroRules_spec__0(x_1, x_2, x_7, x_4, x_5);
return x_8;
}
}
LEAN_EXPORT lean_object* l_Lean_withExporting___at___00Lean_Elab_Command_elabMacroRules_spec__0___redArg___lam__0___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
uint8_t x_5; lean_object* x_6; 
x_5 = lean_unbox(x_2);
x_6 = l_Lean_withExporting___at___00Lean_Elab_Command_elabMacroRules_spec__0___redArg___lam__0(x_1, x_5, x_3);
lean_dec(x_3);
lean_dec(x_1);
return x_6;
}
}
LEAN_EXPORT lean_object* l_Lean_withExporting___at___00Lean_Elab_Command_elabMacroRules_spec__0___redArg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) {
_start:
{
uint8_t x_6; lean_object* x_7; 
x_6 = lean_unbox(x_2);
x_7 = l_Lean_withExporting___at___00Lean_Elab_Command_elabMacroRules_spec__0___redArg(x_1, x_6, x_3, x_4);
return x_7;
}
}
LEAN_EXPORT lean_object* l_Lean_Elab_Command_elabMacroRules___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
lean_object* x_5; 
x_5 = l_Lean_Elab_Command_elabMacroRules(x_1, x_2, x_3);
return x_5;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabMacroRules___regBuiltin_Lean_Elab_Command_elabMacroRules__1___closed__0() {
_start:
{
lean_object* x_1; 
x_1 = l_Lean_Elab_Command_commandElabAttribute;
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabMacroRules___regBuiltin_Lean_Elab_Command_elabMacroRules__1___closed__1() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("elabMacroRules", 14, 14);
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabMacroRules___regBuiltin_Lean_Elab_Command_elabMacroRules__1___closed__2() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; 
x_1 = l_Lean_Elab_Command_elabMacroRules___regBuiltin_Lean_Elab_Command_elabMacroRules__1___closed__1;
x_2 = l_Lean_Elab_Command_elabMacroRulesAux___closed__31;
x_3 = l_Lean_Elab_Command_elabMacroRulesAux___closed__30;
x_4 = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabMacroRulesAux_spec__9___redArg___closed__4;
x_5 = l_Lean_Name_mkStr4(x_4, x_3, x_2, x_1);
return x_5;
}
}
LEAN_EXPORT lean_object* l_Lean_Elab_Command_elabMacroRules___regBuiltin_Lean_Elab_Command_elabMacroRules__1() {
_start:
{
lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; 
x_2 = l_Lean_Elab_Command_elabMacroRules___regBuiltin_Lean_Elab_Command_elabMacroRules__1___closed__0;
x_3 = l_Lean_Elab_Command_elabMacroRules___lam__1___closed__1;
x_4 = l_Lean_Elab_Command_elabMacroRules___regBuiltin_Lean_Elab_Command_elabMacroRules__1___closed__2;
x_5 = lean_alloc_closure((void*)(l_Lean_Elab_Command_elabMacroRules___boxed), 4, 0);
x_6 = l_Lean_KeyedDeclsAttribute_addBuiltin___redArg(x_2, x_3, x_4, x_5);
return x_6;
}
}
LEAN_EXPORT lean_object* l_Lean_Elab_Command_elabMacroRules___regBuiltin_Lean_Elab_Command_elabMacroRules__1___boxed(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = l_Lean_Elab_Command_elabMacroRules___regBuiltin_Lean_Elab_Command_elabMacroRules__1();
return x_2;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabMacroRules___regBuiltin_Lean_Elab_Command_elabMacroRules_declRange__3___closed__0() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_unsigned_to_nat(38u);
x_2 = lean_unsigned_to_nat(50u);
x_3 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_3, 0, x_2);
lean_ctor_set(x_3, 1, x_1);
return x_3;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabMacroRules___regBuiltin_Lean_Elab_Command_elabMacroRules_declRange__3___closed__1() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_unsigned_to_nat(32u);
x_2 = lean_unsigned_to_nat(68u);
x_3 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_3, 0, x_2);
lean_ctor_set(x_3, 1, x_1);
return x_3;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabMacroRules___regBuiltin_Lean_Elab_Command_elabMacroRules_declRange__3___closed__2() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; 
x_1 = lean_unsigned_to_nat(32u);
x_2 = l_Lean_Elab_Command_elabMacroRules___regBuiltin_Lean_Elab_Command_elabMacroRules_declRange__3___closed__1;
x_3 = lean_unsigned_to_nat(38u);
x_4 = l_Lean_Elab_Command_elabMacroRules___regBuiltin_Lean_Elab_Command_elabMacroRules_declRange__3___closed__0;
x_5 = lean_alloc_ctor(0, 4, 0);
lean_ctor_set(x_5, 0, x_4);
lean_ctor_set(x_5, 1, x_3);
lean_ctor_set(x_5, 2, x_2);
lean_ctor_set(x_5, 3, x_1);
return x_5;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabMacroRules___regBuiltin_Lean_Elab_Command_elabMacroRules_declRange__3___closed__3() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_unsigned_to_nat(42u);
x_2 = lean_unsigned_to_nat(50u);
x_3 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_3, 0, x_2);
lean_ctor_set(x_3, 1, x_1);
return x_3;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabMacroRules___regBuiltin_Lean_Elab_Command_elabMacroRules_declRange__3___closed__4() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_unsigned_to_nat(56u);
x_2 = lean_unsigned_to_nat(50u);
x_3 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_3, 0, x_2);
lean_ctor_set(x_3, 1, x_1);
return x_3;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabMacroRules___regBuiltin_Lean_Elab_Command_elabMacroRules_declRange__3___closed__5() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; 
x_1 = lean_unsigned_to_nat(56u);
x_2 = l_Lean_Elab_Command_elabMacroRules___regBuiltin_Lean_Elab_Command_elabMacroRules_declRange__3___closed__4;
x_3 = lean_unsigned_to_nat(42u);
x_4 = l_Lean_Elab_Command_elabMacroRules___regBuiltin_Lean_Elab_Command_elabMacroRules_declRange__3___closed__3;
x_5 = lean_alloc_ctor(0, 4, 0);
lean_ctor_set(x_5, 0, x_4);
lean_ctor_set(x_5, 1, x_3);
lean_ctor_set(x_5, 2, x_2);
lean_ctor_set(x_5, 3, x_1);
return x_5;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabMacroRules___regBuiltin_Lean_Elab_Command_elabMacroRules_declRange__3___closed__6() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Lean_Elab_Command_elabMacroRules___regBuiltin_Lean_Elab_Command_elabMacroRules_declRange__3___closed__5;
x_2 = l_Lean_Elab_Command_elabMacroRules___regBuiltin_Lean_Elab_Command_elabMacroRules_declRange__3___closed__2;
x_3 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_3, 0, x_2);
lean_ctor_set(x_3, 1, x_1);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Lean_Elab_Command_elabMacroRules___regBuiltin_Lean_Elab_Command_elabMacroRules_declRange__3() {
_start:
{
lean_object* x_2; lean_object* x_3; lean_object* x_4; 
x_2 = l_Lean_Elab_Command_elabMacroRules___regBuiltin_Lean_Elab_Command_elabMacroRules__1___closed__2;
x_3 = l_Lean_Elab_Command_elabMacroRules___regBuiltin_Lean_Elab_Command_elabMacroRules_declRange__3___closed__6;
x_4 = l_Lean_addBuiltinDeclarationRanges(x_2, x_3);
return x_4;
}
}
LEAN_EXPORT lean_object* l_Lean_Elab_Command_elabMacroRules___regBuiltin_Lean_Elab_Command_elabMacroRules_declRange__3___boxed(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = l_Lean_Elab_Command_elabMacroRules___regBuiltin_Lean_Elab_Command_elabMacroRules_declRange__3();
return x_2;
}
}
lean_object* initialize_Lean_Elab_Syntax(uint8_t builtin);
lean_object* initialize_Lean_Elab_AuxDef(uint8_t builtin);
static bool _G_initialized = false;
LEAN_EXPORT lean_object* initialize_Lean_Elab_MacroRules(uint8_t builtin) {
lean_object * res;
if (_G_initialized) return lean_io_result_mk_ok(lean_box(0));
_G_initialized = true;
res = initialize_Lean_Elab_Syntax(builtin);
if (lean_io_result_is_error(res)) return res;
lean_dec_ref(res);
res = initialize_Lean_Elab_AuxDef(builtin);
if (lean_io_result_is_error(res)) return res;
lean_dec_ref(res);
l_Lean_Elab_addMacroStack___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00Lean_Elab_Command_elabMacroRulesAux_spec__1_spec__1_spec__2___redArg___closed__0 = _init_l_Lean_Elab_addMacroStack___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00Lean_Elab_Command_elabMacroRulesAux_spec__1_spec__1_spec__2___redArg___closed__0();
lean_mark_persistent(l_Lean_Elab_addMacroStack___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00Lean_Elab_Command_elabMacroRulesAux_spec__1_spec__1_spec__2___redArg___closed__0);
l_Lean_Elab_addMacroStack___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00Lean_Elab_Command_elabMacroRulesAux_spec__1_spec__1_spec__2___redArg___closed__1 = _init_l_Lean_Elab_addMacroStack___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00Lean_Elab_Command_elabMacroRulesAux_spec__1_spec__1_spec__2___redArg___closed__1();
lean_mark_persistent(l_Lean_Elab_addMacroStack___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00Lean_Elab_Command_elabMacroRulesAux_spec__1_spec__1_spec__2___redArg___closed__1);
l_Lean_Elab_addMacroStack___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00Lean_Elab_Command_elabMacroRulesAux_spec__1_spec__1_spec__2___redArg___closed__2 = _init_l_Lean_Elab_addMacroStack___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00Lean_Elab_Command_elabMacroRulesAux_spec__1_spec__1_spec__2___redArg___closed__2();
lean_mark_persistent(l_Lean_Elab_addMacroStack___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00Lean_Elab_Command_elabMacroRulesAux_spec__1_spec__1_spec__2___redArg___closed__2);
l_Lean_Elab_addMacroStack___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00Lean_Elab_Command_elabMacroRulesAux_spec__1_spec__1_spec__2___redArg___closed__3 = _init_l_Lean_Elab_addMacroStack___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00Lean_Elab_Command_elabMacroRulesAux_spec__1_spec__1_spec__2___redArg___closed__3();
lean_mark_persistent(l_Lean_Elab_addMacroStack___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00Lean_Elab_Command_elabMacroRulesAux_spec__1_spec__1_spec__2___redArg___closed__3);
l_Lean_Elab_addMacroStack___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00Lean_Elab_Command_elabMacroRulesAux_spec__1_spec__1_spec__2___redArg___closed__4 = _init_l_Lean_Elab_addMacroStack___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00Lean_Elab_Command_elabMacroRulesAux_spec__1_spec__1_spec__2___redArg___closed__4();
lean_mark_persistent(l_Lean_Elab_addMacroStack___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00Lean_Elab_Command_elabMacroRulesAux_spec__1_spec__1_spec__2___redArg___closed__4);
l_Lean_Elab_addMacroStack___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00Lean_Elab_Command_elabMacroRulesAux_spec__1_spec__1_spec__2___redArg___closed__5 = _init_l_Lean_Elab_addMacroStack___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00Lean_Elab_Command_elabMacroRulesAux_spec__1_spec__1_spec__2___redArg___closed__5();
lean_mark_persistent(l_Lean_Elab_addMacroStack___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00Lean_Elab_Command_elabMacroRulesAux_spec__1_spec__1_spec__2___redArg___closed__5);
l_List_foldl___at___00Lean_Elab_addMacroStack___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00Lean_Elab_Command_elabMacroRulesAux_spec__1_spec__1_spec__2_spec__3___closed__0 = _init_l_List_foldl___at___00Lean_Elab_addMacroStack___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00Lean_Elab_Command_elabMacroRulesAux_spec__1_spec__1_spec__2_spec__3___closed__0();
lean_mark_persistent(l_List_foldl___at___00Lean_Elab_addMacroStack___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00Lean_Elab_Command_elabMacroRulesAux_spec__1_spec__1_spec__2_spec__3___closed__0);
l_List_foldl___at___00Lean_Elab_addMacroStack___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00Lean_Elab_Command_elabMacroRulesAux_spec__1_spec__1_spec__2_spec__3___closed__1 = _init_l_List_foldl___at___00Lean_Elab_addMacroStack___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00Lean_Elab_Command_elabMacroRulesAux_spec__1_spec__1_spec__2_spec__3___closed__1();
lean_mark_persistent(l_List_foldl___at___00Lean_Elab_addMacroStack___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00Lean_Elab_Command_elabMacroRulesAux_spec__1_spec__1_spec__2_spec__3___closed__1);
l_List_foldl___at___00Lean_Elab_addMacroStack___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00Lean_Elab_Command_elabMacroRulesAux_spec__1_spec__1_spec__2_spec__3___closed__2 = _init_l_List_foldl___at___00Lean_Elab_addMacroStack___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00Lean_Elab_Command_elabMacroRulesAux_spec__1_spec__1_spec__2_spec__3___closed__2();
lean_mark_persistent(l_List_foldl___at___00Lean_Elab_addMacroStack___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00Lean_Elab_Command_elabMacroRulesAux_spec__1_spec__1_spec__2_spec__3___closed__2);
l_Lean_Elab_throwUnsupportedSyntax___at___00Lean_Elab_Command_elabMacroRulesAux_spec__0___redArg___closed__0 = _init_l_Lean_Elab_throwUnsupportedSyntax___at___00Lean_Elab_Command_elabMacroRulesAux_spec__0___redArg___closed__0();
lean_mark_persistent(l_Lean_Elab_throwUnsupportedSyntax___at___00Lean_Elab_Command_elabMacroRulesAux_spec__0___redArg___closed__0);
l_Lean_Elab_throwUnsupportedSyntax___at___00Lean_Elab_Command_elabMacroRulesAux_spec__0___redArg___closed__1 = _init_l_Lean_Elab_throwUnsupportedSyntax___at___00Lean_Elab_Command_elabMacroRulesAux_spec__0___redArg___closed__1();
lean_mark_persistent(l_Lean_Elab_throwUnsupportedSyntax___at___00Lean_Elab_Command_elabMacroRulesAux_spec__0___redArg___closed__1);
l_Lean_addMessageContextPartial___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00Lean_Elab_Command_elabMacroRulesAux_spec__1_spec__1_spec__1___redArg___closed__0 = _init_l_Lean_addMessageContextPartial___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00Lean_Elab_Command_elabMacroRulesAux_spec__1_spec__1_spec__1___redArg___closed__0();
lean_mark_persistent(l_Lean_addMessageContextPartial___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00Lean_Elab_Command_elabMacroRulesAux_spec__1_spec__1_spec__1___redArg___closed__0);
l_Lean_addMessageContextPartial___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00Lean_Elab_Command_elabMacroRulesAux_spec__1_spec__1_spec__1___redArg___closed__1 = _init_l_Lean_addMessageContextPartial___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00Lean_Elab_Command_elabMacroRulesAux_spec__1_spec__1_spec__1___redArg___closed__1();
lean_mark_persistent(l_Lean_addMessageContextPartial___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00Lean_Elab_Command_elabMacroRulesAux_spec__1_spec__1_spec__1___redArg___closed__1);
l_Lean_addMessageContextPartial___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00Lean_Elab_Command_elabMacroRulesAux_spec__1_spec__1_spec__1___redArg___closed__2 = _init_l_Lean_addMessageContextPartial___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00Lean_Elab_Command_elabMacroRulesAux_spec__1_spec__1_spec__1___redArg___closed__2();
lean_mark_persistent(l_Lean_addMessageContextPartial___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00Lean_Elab_Command_elabMacroRulesAux_spec__1_spec__1_spec__1___redArg___closed__2);
l_Lean_addMessageContextPartial___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00Lean_Elab_Command_elabMacroRulesAux_spec__1_spec__1_spec__1___redArg___closed__3 = _init_l_Lean_addMessageContextPartial___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00Lean_Elab_Command_elabMacroRulesAux_spec__1_spec__1_spec__1___redArg___closed__3();
lean_mark_persistent(l_Lean_addMessageContextPartial___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00Lean_Elab_Command_elabMacroRulesAux_spec__1_spec__1_spec__1___redArg___closed__3);
l_Lean_addMessageContextPartial___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00Lean_Elab_Command_elabMacroRulesAux_spec__1_spec__1_spec__1___redArg___closed__4 = _init_l_Lean_addMessageContextPartial___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00Lean_Elab_Command_elabMacroRulesAux_spec__1_spec__1_spec__1___redArg___closed__4();
lean_mark_persistent(l_Lean_addMessageContextPartial___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00Lean_Elab_Command_elabMacroRulesAux_spec__1_spec__1_spec__1___redArg___closed__4);
l_Lean_addMessageContextPartial___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00Lean_Elab_Command_elabMacroRulesAux_spec__1_spec__1_spec__1___redArg___closed__5 = _init_l_Lean_addMessageContextPartial___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00Lean_Elab_Command_elabMacroRulesAux_spec__1_spec__1_spec__1___redArg___closed__5();
lean_mark_persistent(l_Lean_addMessageContextPartial___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00Lean_Elab_Command_elabMacroRulesAux_spec__1_spec__1_spec__1___redArg___closed__5);
l_Lean_addMessageContextPartial___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00Lean_Elab_Command_elabMacroRulesAux_spec__1_spec__1_spec__1___redArg___closed__6 = _init_l_Lean_addMessageContextPartial___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00Lean_Elab_Command_elabMacroRulesAux_spec__1_spec__1_spec__1___redArg___closed__6();
lean_mark_persistent(l_Lean_addMessageContextPartial___at___00Lean_throwError___at___00Lean_throwErrorAt___at___00Lean_Elab_Command_elabMacroRulesAux_spec__1_spec__1_spec__1___redArg___closed__6);
l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabMacroRulesAux_spec__9___redArg___closed__0 = _init_l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabMacroRulesAux_spec__9___redArg___closed__0();
lean_mark_persistent(l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabMacroRulesAux_spec__9___redArg___closed__0);
l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabMacroRulesAux_spec__9___redArg___closed__1 = _init_l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabMacroRulesAux_spec__9___redArg___closed__1();
lean_mark_persistent(l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabMacroRulesAux_spec__9___redArg___closed__1);
l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabMacroRulesAux_spec__9___redArg___closed__2 = _init_l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabMacroRulesAux_spec__9___redArg___closed__2();
lean_mark_persistent(l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabMacroRulesAux_spec__9___redArg___closed__2);
l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabMacroRulesAux_spec__9___redArg___closed__3 = _init_l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabMacroRulesAux_spec__9___redArg___closed__3();
lean_mark_persistent(l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabMacroRulesAux_spec__9___redArg___closed__3);
l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabMacroRulesAux_spec__9___redArg___closed__7 = _init_l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabMacroRulesAux_spec__9___redArg___closed__7();
lean_mark_persistent(l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabMacroRulesAux_spec__9___redArg___closed__7);
l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabMacroRulesAux_spec__9___redArg___closed__6 = _init_l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabMacroRulesAux_spec__9___redArg___closed__6();
lean_mark_persistent(l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabMacroRulesAux_spec__9___redArg___closed__6);
l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabMacroRulesAux_spec__9___redArg___closed__5 = _init_l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabMacroRulesAux_spec__9___redArg___closed__5();
lean_mark_persistent(l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabMacroRulesAux_spec__9___redArg___closed__5);
l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabMacroRulesAux_spec__9___redArg___closed__4 = _init_l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabMacroRulesAux_spec__9___redArg___closed__4();
lean_mark_persistent(l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabMacroRulesAux_spec__9___redArg___closed__4);
l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabMacroRulesAux_spec__9___redArg___closed__8 = _init_l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabMacroRulesAux_spec__9___redArg___closed__8();
lean_mark_persistent(l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabMacroRulesAux_spec__9___redArg___closed__8);
l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabMacroRulesAux_spec__9___redArg___closed__9 = _init_l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabMacroRulesAux_spec__9___redArg___closed__9();
lean_mark_persistent(l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabMacroRulesAux_spec__9___redArg___closed__9);
l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabMacroRulesAux_spec__9___redArg___closed__10 = _init_l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabMacroRulesAux_spec__9___redArg___closed__10();
lean_mark_persistent(l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabMacroRulesAux_spec__9___redArg___closed__10);
l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabMacroRulesAux_spec__9___redArg___closed__11 = _init_l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabMacroRulesAux_spec__9___redArg___closed__11();
lean_mark_persistent(l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabMacroRulesAux_spec__9___redArg___closed__11);
l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabMacroRulesAux_spec__9___redArg___closed__12 = _init_l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabMacroRulesAux_spec__9___redArg___closed__12();
lean_mark_persistent(l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabMacroRulesAux_spec__9___redArg___closed__12);
l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabMacroRulesAux_spec__9___redArg___closed__13 = _init_l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabMacroRulesAux_spec__9___redArg___closed__13();
lean_mark_persistent(l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabMacroRulesAux_spec__9___redArg___closed__13);
l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabMacroRulesAux_spec__9___redArg___closed__14 = _init_l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabMacroRulesAux_spec__9___redArg___closed__14();
lean_mark_persistent(l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabMacroRulesAux_spec__9___redArg___closed__14);
l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabMacroRulesAux_spec__9___redArg___closed__15 = _init_l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabMacroRulesAux_spec__9___redArg___closed__15();
lean_mark_persistent(l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabMacroRulesAux_spec__9___redArg___closed__15);
l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabMacroRulesAux_spec__9___redArg___closed__16 = _init_l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabMacroRulesAux_spec__9___redArg___closed__16();
lean_mark_persistent(l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabMacroRulesAux_spec__9___redArg___closed__16);
l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabMacroRulesAux_spec__9___redArg___closed__17 = _init_l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabMacroRulesAux_spec__9___redArg___closed__17();
lean_mark_persistent(l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabMacroRulesAux_spec__9___redArg___closed__17);
l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabMacroRulesAux_spec__9___redArg___closed__18 = _init_l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabMacroRulesAux_spec__9___redArg___closed__18();
lean_mark_persistent(l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_Elab_Command_elabMacroRulesAux_spec__9___redArg___closed__18);
l_Lean_Elab_Command_elabMacroRulesAux___closed__0 = _init_l_Lean_Elab_Command_elabMacroRulesAux___closed__0();
lean_mark_persistent(l_Lean_Elab_Command_elabMacroRulesAux___closed__0);
l_Lean_Elab_Command_elabMacroRulesAux___closed__1 = _init_l_Lean_Elab_Command_elabMacroRulesAux___closed__1();
lean_mark_persistent(l_Lean_Elab_Command_elabMacroRulesAux___closed__1);
l_Lean_Elab_Command_elabMacroRulesAux___closed__2 = _init_l_Lean_Elab_Command_elabMacroRulesAux___closed__2();
lean_mark_persistent(l_Lean_Elab_Command_elabMacroRulesAux___closed__2);
l_Lean_Elab_Command_elabMacroRulesAux___closed__3 = _init_l_Lean_Elab_Command_elabMacroRulesAux___closed__3();
lean_mark_persistent(l_Lean_Elab_Command_elabMacroRulesAux___closed__3);
l_Lean_Elab_Command_elabMacroRulesAux___closed__4 = _init_l_Lean_Elab_Command_elabMacroRulesAux___closed__4();
lean_mark_persistent(l_Lean_Elab_Command_elabMacroRulesAux___closed__4);
l_Lean_Elab_Command_elabMacroRulesAux___closed__5 = _init_l_Lean_Elab_Command_elabMacroRulesAux___closed__5();
lean_mark_persistent(l_Lean_Elab_Command_elabMacroRulesAux___closed__5);
l_Lean_Elab_Command_elabMacroRulesAux___closed__6 = _init_l_Lean_Elab_Command_elabMacroRulesAux___closed__6();
lean_mark_persistent(l_Lean_Elab_Command_elabMacroRulesAux___closed__6);
l_Lean_Elab_Command_elabMacroRulesAux___closed__7 = _init_l_Lean_Elab_Command_elabMacroRulesAux___closed__7();
lean_mark_persistent(l_Lean_Elab_Command_elabMacroRulesAux___closed__7);
l_Lean_Elab_Command_elabMacroRulesAux___closed__8 = _init_l_Lean_Elab_Command_elabMacroRulesAux___closed__8();
lean_mark_persistent(l_Lean_Elab_Command_elabMacroRulesAux___closed__8);
l_Lean_Elab_Command_elabMacroRulesAux___closed__9 = _init_l_Lean_Elab_Command_elabMacroRulesAux___closed__9();
lean_mark_persistent(l_Lean_Elab_Command_elabMacroRulesAux___closed__9);
l_Lean_Elab_Command_elabMacroRulesAux___closed__10 = _init_l_Lean_Elab_Command_elabMacroRulesAux___closed__10();
lean_mark_persistent(l_Lean_Elab_Command_elabMacroRulesAux___closed__10);
l_Lean_Elab_Command_elabMacroRulesAux___closed__11 = _init_l_Lean_Elab_Command_elabMacroRulesAux___closed__11();
lean_mark_persistent(l_Lean_Elab_Command_elabMacroRulesAux___closed__11);
l_Lean_Elab_Command_elabMacroRulesAux___closed__12 = _init_l_Lean_Elab_Command_elabMacroRulesAux___closed__12();
lean_mark_persistent(l_Lean_Elab_Command_elabMacroRulesAux___closed__12);
l_Lean_Elab_Command_elabMacroRulesAux___closed__13 = _init_l_Lean_Elab_Command_elabMacroRulesAux___closed__13();
lean_mark_persistent(l_Lean_Elab_Command_elabMacroRulesAux___closed__13);
l_Lean_Elab_Command_elabMacroRulesAux___closed__14 = _init_l_Lean_Elab_Command_elabMacroRulesAux___closed__14();
lean_mark_persistent(l_Lean_Elab_Command_elabMacroRulesAux___closed__14);
l_Lean_Elab_Command_elabMacroRulesAux___closed__15 = _init_l_Lean_Elab_Command_elabMacroRulesAux___closed__15();
lean_mark_persistent(l_Lean_Elab_Command_elabMacroRulesAux___closed__15);
l_Lean_Elab_Command_elabMacroRulesAux___closed__16 = _init_l_Lean_Elab_Command_elabMacroRulesAux___closed__16();
lean_mark_persistent(l_Lean_Elab_Command_elabMacroRulesAux___closed__16);
l_Lean_Elab_Command_elabMacroRulesAux___closed__17 = _init_l_Lean_Elab_Command_elabMacroRulesAux___closed__17();
lean_mark_persistent(l_Lean_Elab_Command_elabMacroRulesAux___closed__17);
l_Lean_Elab_Command_elabMacroRulesAux___closed__18 = _init_l_Lean_Elab_Command_elabMacroRulesAux___closed__18();
lean_mark_persistent(l_Lean_Elab_Command_elabMacroRulesAux___closed__18);
l_Lean_Elab_Command_elabMacroRulesAux___closed__19 = _init_l_Lean_Elab_Command_elabMacroRulesAux___closed__19();
lean_mark_persistent(l_Lean_Elab_Command_elabMacroRulesAux___closed__19);
l_Lean_Elab_Command_elabMacroRulesAux___closed__20 = _init_l_Lean_Elab_Command_elabMacroRulesAux___closed__20();
lean_mark_persistent(l_Lean_Elab_Command_elabMacroRulesAux___closed__20);
l_Lean_Elab_Command_elabMacroRulesAux___closed__21 = _init_l_Lean_Elab_Command_elabMacroRulesAux___closed__21();
lean_mark_persistent(l_Lean_Elab_Command_elabMacroRulesAux___closed__21);
l_Lean_Elab_Command_elabMacroRulesAux___closed__22 = _init_l_Lean_Elab_Command_elabMacroRulesAux___closed__22();
lean_mark_persistent(l_Lean_Elab_Command_elabMacroRulesAux___closed__22);
l_Lean_Elab_Command_elabMacroRulesAux___closed__23 = _init_l_Lean_Elab_Command_elabMacroRulesAux___closed__23();
lean_mark_persistent(l_Lean_Elab_Command_elabMacroRulesAux___closed__23);
l_Lean_Elab_Command_elabMacroRulesAux___closed__24 = _init_l_Lean_Elab_Command_elabMacroRulesAux___closed__24();
lean_mark_persistent(l_Lean_Elab_Command_elabMacroRulesAux___closed__24);
l_Lean_Elab_Command_elabMacroRulesAux___closed__25 = _init_l_Lean_Elab_Command_elabMacroRulesAux___closed__25();
lean_mark_persistent(l_Lean_Elab_Command_elabMacroRulesAux___closed__25);
l_Lean_Elab_Command_elabMacroRulesAux___closed__26 = _init_l_Lean_Elab_Command_elabMacroRulesAux___closed__26();
lean_mark_persistent(l_Lean_Elab_Command_elabMacroRulesAux___closed__26);
l_Lean_Elab_Command_elabMacroRulesAux___closed__27 = _init_l_Lean_Elab_Command_elabMacroRulesAux___closed__27();
lean_mark_persistent(l_Lean_Elab_Command_elabMacroRulesAux___closed__27);
l_Lean_Elab_Command_elabMacroRulesAux___closed__28 = _init_l_Lean_Elab_Command_elabMacroRulesAux___closed__28();
lean_mark_persistent(l_Lean_Elab_Command_elabMacroRulesAux___closed__28);
l_Lean_Elab_Command_elabMacroRulesAux___closed__29 = _init_l_Lean_Elab_Command_elabMacroRulesAux___closed__29();
lean_mark_persistent(l_Lean_Elab_Command_elabMacroRulesAux___closed__29);
l_Lean_Elab_Command_elabMacroRulesAux___closed__30 = _init_l_Lean_Elab_Command_elabMacroRulesAux___closed__30();
lean_mark_persistent(l_Lean_Elab_Command_elabMacroRulesAux___closed__30);
l_Lean_Elab_Command_elabMacroRulesAux___closed__31 = _init_l_Lean_Elab_Command_elabMacroRulesAux___closed__31();
lean_mark_persistent(l_Lean_Elab_Command_elabMacroRulesAux___closed__31);
l_Lean_Elab_Command_elabMacroRulesAux___closed__32 = _init_l_Lean_Elab_Command_elabMacroRulesAux___closed__32();
lean_mark_persistent(l_Lean_Elab_Command_elabMacroRulesAux___closed__32);
l_Lean_Elab_Command_elabMacroRulesAux___closed__33 = _init_l_Lean_Elab_Command_elabMacroRulesAux___closed__33();
lean_mark_persistent(l_Lean_Elab_Command_elabMacroRulesAux___closed__33);
l_Lean_Elab_Command_elabMacroRulesAux___closed__34 = _init_l_Lean_Elab_Command_elabMacroRulesAux___closed__34();
lean_mark_persistent(l_Lean_Elab_Command_elabMacroRulesAux___closed__34);
l_Lean_Elab_Command_elabMacroRulesAux___closed__35 = _init_l_Lean_Elab_Command_elabMacroRulesAux___closed__35();
lean_mark_persistent(l_Lean_Elab_Command_elabMacroRulesAux___closed__35);
l_Lean_Elab_Command_elabMacroRulesAux___closed__36 = _init_l_Lean_Elab_Command_elabMacroRulesAux___closed__36();
lean_mark_persistent(l_Lean_Elab_Command_elabMacroRulesAux___closed__36);
l_Lean_Elab_Command_elabMacroRulesAux___closed__37 = _init_l_Lean_Elab_Command_elabMacroRulesAux___closed__37();
lean_mark_persistent(l_Lean_Elab_Command_elabMacroRulesAux___closed__37);
l_Lean_Elab_Command_elabMacroRulesAux___closed__38 = _init_l_Lean_Elab_Command_elabMacroRulesAux___closed__38();
lean_mark_persistent(l_Lean_Elab_Command_elabMacroRulesAux___closed__38);
l_Lean_Elab_Command_elabMacroRulesAux___closed__39 = _init_l_Lean_Elab_Command_elabMacroRulesAux___closed__39();
lean_mark_persistent(l_Lean_Elab_Command_elabMacroRulesAux___closed__39);
l_Lean_Elab_Command_elabMacroRulesAux___closed__40 = _init_l_Lean_Elab_Command_elabMacroRulesAux___closed__40();
lean_mark_persistent(l_Lean_Elab_Command_elabMacroRulesAux___closed__40);
l_Lean_Elab_Command_elabMacroRulesAux___closed__41 = _init_l_Lean_Elab_Command_elabMacroRulesAux___closed__41();
lean_mark_persistent(l_Lean_Elab_Command_elabMacroRulesAux___closed__41);
l_Lean_Elab_Command_elabMacroRules___lam__5___closed__0 = _init_l_Lean_Elab_Command_elabMacroRules___lam__5___closed__0();
lean_mark_persistent(l_Lean_Elab_Command_elabMacroRules___lam__5___closed__0);
l_Lean_Elab_Command_elabMacroRules___lam__5___closed__1 = _init_l_Lean_Elab_Command_elabMacroRules___lam__5___closed__1();
lean_mark_persistent(l_Lean_Elab_Command_elabMacroRules___lam__5___closed__1);
l_Lean_Elab_Command_elabMacroRules___lam__5___closed__2 = _init_l_Lean_Elab_Command_elabMacroRules___lam__5___closed__2();
lean_mark_persistent(l_Lean_Elab_Command_elabMacroRules___lam__5___closed__2);
l_Lean_Elab_Command_elabMacroRules___lam__1___closed__0 = _init_l_Lean_Elab_Command_elabMacroRules___lam__1___closed__0();
lean_mark_persistent(l_Lean_Elab_Command_elabMacroRules___lam__1___closed__0);
l_Lean_Elab_Command_elabMacroRules___lam__1___closed__1 = _init_l_Lean_Elab_Command_elabMacroRules___lam__1___closed__1();
lean_mark_persistent(l_Lean_Elab_Command_elabMacroRules___lam__1___closed__1);
l_Lean_Elab_Command_elabMacroRules___lam__1___closed__2 = _init_l_Lean_Elab_Command_elabMacroRules___lam__1___closed__2();
lean_mark_persistent(l_Lean_Elab_Command_elabMacroRules___lam__1___closed__2);
l_Lean_Elab_Command_elabMacroRules___lam__1___closed__3 = _init_l_Lean_Elab_Command_elabMacroRules___lam__1___closed__3();
lean_mark_persistent(l_Lean_Elab_Command_elabMacroRules___lam__1___closed__3);
l_Lean_Elab_Command_elabMacroRules___lam__1___closed__4 = _init_l_Lean_Elab_Command_elabMacroRules___lam__1___closed__4();
lean_mark_persistent(l_Lean_Elab_Command_elabMacroRules___lam__1___closed__4);
l_Lean_Elab_Command_elabMacroRules___lam__1___closed__5 = _init_l_Lean_Elab_Command_elabMacroRules___lam__1___closed__5();
lean_mark_persistent(l_Lean_Elab_Command_elabMacroRules___lam__1___closed__5);
l_Lean_Elab_Command_elabMacroRules___lam__1___closed__6 = _init_l_Lean_Elab_Command_elabMacroRules___lam__1___closed__6();
lean_mark_persistent(l_Lean_Elab_Command_elabMacroRules___lam__1___closed__6);
l_Lean_Elab_Command_elabMacroRules___lam__1___closed__7 = _init_l_Lean_Elab_Command_elabMacroRules___lam__1___closed__7();
lean_mark_persistent(l_Lean_Elab_Command_elabMacroRules___lam__1___closed__7);
l_Lean_Elab_Command_elabMacroRules___lam__1___closed__8 = _init_l_Lean_Elab_Command_elabMacroRules___lam__1___closed__8();
lean_mark_persistent(l_Lean_Elab_Command_elabMacroRules___lam__1___closed__8);
l_Lean_Elab_Command_elabMacroRules___lam__1___closed__9 = _init_l_Lean_Elab_Command_elabMacroRules___lam__1___closed__9();
lean_mark_persistent(l_Lean_Elab_Command_elabMacroRules___lam__1___closed__9);
l_Lean_Elab_Command_elabMacroRules___lam__1___closed__10 = _init_l_Lean_Elab_Command_elabMacroRules___lam__1___closed__10();
lean_mark_persistent(l_Lean_Elab_Command_elabMacroRules___lam__1___closed__10);
l_Lean_Elab_Command_elabMacroRules___lam__1___closed__11 = _init_l_Lean_Elab_Command_elabMacroRules___lam__1___closed__11();
lean_mark_persistent(l_Lean_Elab_Command_elabMacroRules___lam__1___closed__11);
l_Lean_Elab_Command_elabMacroRules___lam__1___closed__12 = _init_l_Lean_Elab_Command_elabMacroRules___lam__1___closed__12();
lean_mark_persistent(l_Lean_Elab_Command_elabMacroRules___lam__1___closed__12);
l_Lean_Elab_Command_elabMacroRules___lam__1___closed__13 = _init_l_Lean_Elab_Command_elabMacroRules___lam__1___closed__13();
lean_mark_persistent(l_Lean_Elab_Command_elabMacroRules___lam__1___closed__13);
l_Lean_Elab_Command_elabMacroRules___lam__1___closed__14 = _init_l_Lean_Elab_Command_elabMacroRules___lam__1___closed__14();
lean_mark_persistent(l_Lean_Elab_Command_elabMacroRules___lam__1___closed__14);
l_Lean_Elab_Command_elabMacroRules___lam__1___closed__15 = _init_l_Lean_Elab_Command_elabMacroRules___lam__1___closed__15();
lean_mark_persistent(l_Lean_Elab_Command_elabMacroRules___lam__1___closed__15);
l_Lean_Elab_Command_elabMacroRules___lam__1___closed__16 = _init_l_Lean_Elab_Command_elabMacroRules___lam__1___closed__16();
lean_mark_persistent(l_Lean_Elab_Command_elabMacroRules___lam__1___closed__16);
l_Lean_Elab_Command_elabMacroRules___lam__1___closed__17 = _init_l_Lean_Elab_Command_elabMacroRules___lam__1___closed__17();
lean_mark_persistent(l_Lean_Elab_Command_elabMacroRules___lam__1___closed__17);
l_Lean_Elab_Command_elabMacroRules___lam__1___closed__18 = _init_l_Lean_Elab_Command_elabMacroRules___lam__1___closed__18();
lean_mark_persistent(l_Lean_Elab_Command_elabMacroRules___lam__1___closed__18);
l_Lean_Elab_Command_elabMacroRules___regBuiltin_Lean_Elab_Command_elabMacroRules__1___closed__0 = _init_l_Lean_Elab_Command_elabMacroRules___regBuiltin_Lean_Elab_Command_elabMacroRules__1___closed__0();
lean_mark_persistent(l_Lean_Elab_Command_elabMacroRules___regBuiltin_Lean_Elab_Command_elabMacroRules__1___closed__0);
l_Lean_Elab_Command_elabMacroRules___regBuiltin_Lean_Elab_Command_elabMacroRules__1___closed__1 = _init_l_Lean_Elab_Command_elabMacroRules___regBuiltin_Lean_Elab_Command_elabMacroRules__1___closed__1();
lean_mark_persistent(l_Lean_Elab_Command_elabMacroRules___regBuiltin_Lean_Elab_Command_elabMacroRules__1___closed__1);
l_Lean_Elab_Command_elabMacroRules___regBuiltin_Lean_Elab_Command_elabMacroRules__1___closed__2 = _init_l_Lean_Elab_Command_elabMacroRules___regBuiltin_Lean_Elab_Command_elabMacroRules__1___closed__2();
lean_mark_persistent(l_Lean_Elab_Command_elabMacroRules___regBuiltin_Lean_Elab_Command_elabMacroRules__1___closed__2);
if (builtin) {res = l_Lean_Elab_Command_elabMacroRules___regBuiltin_Lean_Elab_Command_elabMacroRules__1();
if (lean_io_result_is_error(res)) return res;
lean_dec_ref(res);
}l_Lean_Elab_Command_elabMacroRules___regBuiltin_Lean_Elab_Command_elabMacroRules_declRange__3___closed__0 = _init_l_Lean_Elab_Command_elabMacroRules___regBuiltin_Lean_Elab_Command_elabMacroRules_declRange__3___closed__0();
lean_mark_persistent(l_Lean_Elab_Command_elabMacroRules___regBuiltin_Lean_Elab_Command_elabMacroRules_declRange__3___closed__0);
l_Lean_Elab_Command_elabMacroRules___regBuiltin_Lean_Elab_Command_elabMacroRules_declRange__3___closed__1 = _init_l_Lean_Elab_Command_elabMacroRules___regBuiltin_Lean_Elab_Command_elabMacroRules_declRange__3___closed__1();
lean_mark_persistent(l_Lean_Elab_Command_elabMacroRules___regBuiltin_Lean_Elab_Command_elabMacroRules_declRange__3___closed__1);
l_Lean_Elab_Command_elabMacroRules___regBuiltin_Lean_Elab_Command_elabMacroRules_declRange__3___closed__2 = _init_l_Lean_Elab_Command_elabMacroRules___regBuiltin_Lean_Elab_Command_elabMacroRules_declRange__3___closed__2();
lean_mark_persistent(l_Lean_Elab_Command_elabMacroRules___regBuiltin_Lean_Elab_Command_elabMacroRules_declRange__3___closed__2);
l_Lean_Elab_Command_elabMacroRules___regBuiltin_Lean_Elab_Command_elabMacroRules_declRange__3___closed__3 = _init_l_Lean_Elab_Command_elabMacroRules___regBuiltin_Lean_Elab_Command_elabMacroRules_declRange__3___closed__3();
lean_mark_persistent(l_Lean_Elab_Command_elabMacroRules___regBuiltin_Lean_Elab_Command_elabMacroRules_declRange__3___closed__3);
l_Lean_Elab_Command_elabMacroRules___regBuiltin_Lean_Elab_Command_elabMacroRules_declRange__3___closed__4 = _init_l_Lean_Elab_Command_elabMacroRules___regBuiltin_Lean_Elab_Command_elabMacroRules_declRange__3___closed__4();
lean_mark_persistent(l_Lean_Elab_Command_elabMacroRules___regBuiltin_Lean_Elab_Command_elabMacroRules_declRange__3___closed__4);
l_Lean_Elab_Command_elabMacroRules___regBuiltin_Lean_Elab_Command_elabMacroRules_declRange__3___closed__5 = _init_l_Lean_Elab_Command_elabMacroRules___regBuiltin_Lean_Elab_Command_elabMacroRules_declRange__3___closed__5();
lean_mark_persistent(l_Lean_Elab_Command_elabMacroRules___regBuiltin_Lean_Elab_Command_elabMacroRules_declRange__3___closed__5);
l_Lean_Elab_Command_elabMacroRules___regBuiltin_Lean_Elab_Command_elabMacroRules_declRange__3___closed__6 = _init_l_Lean_Elab_Command_elabMacroRules___regBuiltin_Lean_Elab_Command_elabMacroRules_declRange__3___closed__6();
lean_mark_persistent(l_Lean_Elab_Command_elabMacroRules___regBuiltin_Lean_Elab_Command_elabMacroRules_declRange__3___closed__6);
if (builtin) {res = l_Lean_Elab_Command_elabMacroRules___regBuiltin_Lean_Elab_Command_elabMacroRules_declRange__3();
if (lean_io_result_is_error(res)) return res;
lean_dec_ref(res);
}return lean_io_result_mk_ok(lean_box(0));
}
#ifdef __cplusplus
}
#endif
